/* Font Inter z Google Fonts */
html {
  height: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #121212;
  background-image: url('/img/bg.png');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #e0e0e0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > .container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

body > footer {
  margin-top: auto;
}

/* Logo w rogu slajdu */
/* Ustawione inline w JavaScript */

.slider-step {
  position: relative;
  padding-top: 15px;
}

.slider-step h1,
.slider-step h2,
.slider-step h3 {
  margin-top: -50px;
  padding-top: 50px;
}

/* Slider - przezroczyste karty, ulokowane niżej */
#slider {
  padding-top: 64px;
  padding-bottom: 48px; /* Miejsce na footer z logo */
  min-height: auto;
  position: relative;
  z-index: 10; /* Nad footerem */
}

.slider-step.card {
  background-color: rgba(20, 20, 20, 0.35) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.slider-step .card-body {
  background-color: transparent !important;
}

/* Elementy wewnętrzne - też przezroczyste */
.slider-step .card {
  background-color: rgba(30, 30, 30, 0.25) !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
}

.slider-step .element-card,
.slider-step .project-card {
  background-color: rgba(20, 20, 20, 0.25) !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
}

/* Typografia */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.display-4 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lead {
  font-weight: 400;
}

.card-title {
  font-weight: 600;
}

.btn {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

/* ===========================================
   PALETA KOLORÓW FIRMOWYCH
   #1F382C - ciemny zielony (primary)
   #97B4DE - jasny niebieski (info/secondary)
   #C8655A - koralowy (danger/warning)
   #AEB6A0 - szaro-zielony (muted/outline)
   =========================================== */

/* Przyciski Primary - ciemny zielony */
.btn-primary {
  background-color: #1F382C !important;
  border-color: #1F382C !important;
  color: #ffffff !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #2a4d3d !important;
  border-color: #2a4d3d !important;
  color: #ffffff !important;
}

.btn-primary:active {
  background-color: #162920 !important;
  border-color: #162920 !important;
}

/* Przyciski Secondary - szaro-zielony */
.btn-secondary {
  background-color: #AEB6A0 !important;
  border-color: #AEB6A0 !important;
  color: #1F382C !important;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: #9aa390 !important;
  border-color: #9aa390 !important;
  color: #1F382C !important;
}

/* Przyciski Info/Outline - jasny niebieski */
.btn-info,
.btn-outline-info {
  background-color: transparent !important;
  border-color: #97B4DE !important;
  color: #97B4DE !important;
}

.btn-info:hover,
.btn-outline-info:hover {
  background-color: #97B4DE !important;
  border-color: #97B4DE !important;
  color: #1F382C !important;
}

/* Przyciski Outline Primary */
.btn-outline-primary {
  background-color: transparent !important;
  border-color: #1F382C !important;
  color: #97B4DE !important;
}

.btn-outline-primary:hover {
  background-color: #1F382C !important;
  border-color: #1F382C !important;
  color: #ffffff !important;
}

/* Przyciski Outline Secondary */
.btn-outline-secondary {
  background-color: transparent !important;
  border-color: #AEB6A0 !important;
  color: #AEB6A0 !important;
}

.btn-outline-secondary:hover {
  background-color: #AEB6A0 !important;
  border-color: #AEB6A0 !important;
  color: #1F382C !important;
}

/* Przyciski Danger - koralowy */
.btn-danger {
  background-color: #C8655A !important;
  border-color: #C8655A !important;
  color: #ffffff !important;
}

.btn-danger:hover,
.btn-danger:focus {
  background-color: #b5544a !important;
  border-color: #b5544a !important;
}

/* Przyciski Warning - jasny niebieski */
.btn-warning {
  background-color: #97B4DE !important;
  border-color: #97B4DE !important;
  color: #1F382C !important;
}

.btn-warning:hover {
  background-color: #7a9bc9 !important;
  border-color: #7a9bc9 !important;
}

/* Przyciski Success - ciemny zielony */
.btn-success {
  background-color: #1F382C !important;
  border-color: #1F382C !important;
  color: #ffffff !important;
}

.btn-success:hover {
  background-color: #2a4d3d !important;
  border-color: #2a4d3d !important;
}
.canvas-container {
  background-color: #1e1e1e;
  border-radius: 0 0 0.75rem 0.75rem;
  overflow: hidden;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  margin-top: 0;
  border: 1px solid rgba(151, 180, 222, 0.2);
  border-top: none;
}
#roomCanvas {
  background-color: #2d2d2d;
}
.status-bar {
  background: linear-gradient(135deg, #1F382C 0%, #2a4d3d 100%);
  border: 1px solid rgba(151, 180, 222, 0.2);
  border-bottom: none;
  color: white;
  padding: 0.75rem 1.25rem;
  font-weight: 500;
  border-radius: 0.75rem 0.75rem 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.status-bar .status-info {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
  min-width: 300px;
}

.status-bar .status-item {
  font-size: 0.95rem;
  color: #97B4DE;
  font-weight: 600;
  white-space: nowrap;
}

.status-bar .status-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.status-bar .btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

/* Wyróżnienie aktywnych przycisków kątów */
#snap45Btn.btn-primary,
#freeAngleBtn.btn-primary {
  background-color: #1F382C !important;
  border-color: #97B4DE !important;
  border-width: 2px !important;
  color: #ffffff !important;
  font-weight: 600 !important;
}

#snap45Btn.btn-primary:hover,
#freeAngleBtn.btn-primary:hover {
  background-color: #2a4d3d !important;
  border-color: #97B4DE !important;
}

/* Przyciski kątów w stanie outline */
#snap45Btn.btn-outline-primary,
#freeAngleBtn.btn-outline-primary {
  background-color: transparent !important;
  border-color: #1F382C !important;
  border-width: 1px !important;
  color: #97B4DE !important;
  font-weight: 500 !important;
}

#snap45Btn.btn-outline-primary:hover,
#freeAngleBtn.btn-outline-primary:hover {
  background-color: #1F382C !important;
  border-color: #1F382C !important;
  color: #ffffff !important;
}

/* Responsywność paska stanu */
@media (max-width: 1200px) {
  .status-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .status-bar .status-info {
    width: 100%;
    min-width: auto;
  }
  
  .status-bar .status-controls {
    width: 100%;
  }
  
  .status-bar .btn-sm {
    flex: 1;
    min-width: 100px;
  }
}
.element-card {
  background-color: #1e1e1e;
  border: 1px solid #444;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
}
.project-card {
  background-color: rgba(20, 20, 20, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
}
.form-control, .form-select {
  background-color: #2d2d2d;
  border: 1px solid #444;
  color: #e0e0e0;
}
.form-control:focus, .form-select:focus {
  background-color: #2d2d2d;
  border-color: #97B4DE;
  color: #e0e0e0;
  box-shadow: 0 0 0 0.25rem rgba(151, 180, 222, 0.25);
}
.btn-group-tools .btn {
  flex: 1;
  min-width: 120px;
}
#floatingLengthInput {
  background-color: #2d2d2d;
  border: 1px solid #97B4DE;
  color: white;
  width: 100px;
  font-size: 1.5rem;
  padding: 0.25rem 0.5rem;
  text-align: center;
  border-radius: 0.4rem;
}

/* Animacje przejść między slajdami */
.slider-step {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.slider-step.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: fadeSlideIn 0.5s ease forwards;
}

@keyframes fadeSlideIn {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Spójne style dla dark theme */
.list-group-item {
  background-color: #343a40 !important;
  border-color: #6c757d !important;
  color: #e0e0e0 !important;
}

.list-group-item.bg-dark {
  background-color: #212529 !important;
}

.progress {
  background-color: #495057 !important;
}

.alert-info {
  background-color: rgba(151, 180, 222, 0.1);
  border-color: #97B4DE;
  color: #97B4DE;
}

.alert-warning {
  background-color: rgba(200, 101, 90, 0.1);
  border-color: #C8655A;
  color: #C8655A;
}

.alert-danger {
  background-color: rgba(200, 101, 90, 0.15);
  border-color: #C8655A;
  color: #C8655A;
}

.project-card {
  transition: box-shadow 0.2s ease;
}

.project-card:hover {
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.3);
}

/* Styles for thanks page */
.thanks-container {
  background-color: #121212;
  background-image: url('/img/bg.png');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #e0e0e0;
  min-height: 100vh;
  padding: 3rem 0;
}

.thanks-card {
  background-color: rgba(20, 20, 20, 0.35) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border-radius: 0.5rem;
}

.thanks-title {
  color: #97B4DE;
  font-weight: bold;
}

.thanks-subtitle {
  color: #e0e0e0;
}

.thanks-success-icon {
  color: #1F382C;
  font-size: 4rem;
}

.thanks-alert-info {
  background-color: rgba(151, 180, 222, 0.1);
  border-color: #97B4DE;
  color: #97B4DE;
  border: 1px solid #97B4DE;
}

.thanks-alert-warning {
  background-color: rgba(200, 101, 90, 0.1);
  border-color: #C8655A;
  color: #C8655A;
  border: 1px solid #C8655A;
}

.thanks-btn-primary {
  background-color: #1F382C;
  border-color: #1F382C;
  color: #ffffff;
}

.thanks-btn-primary:hover {
  background-color: #2a4d3d;
  border-color: #2a4d3d;
  color: #ffffff;
}

.thanks-btn-outline {
  border: 1px solid #AEB6A0;
  color: #AEB6A0;
  background-color: transparent;
}

.thanks-btn-outline:hover {
  background-color: #AEB6A0;
  color: #1F382C;
  border-color: #AEB6A0;
}

/* Footer z logo i copyright - przyczepoiony do dołu strony */
.calculator-footer {
  padding: 2rem 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
  opacity: 1;
  transition: opacity 0.3s ease;
  z-index: 10;
  width: 100%;
}

.calculator-footer:hover {
  opacity: 1;
}

.footer-logo-img {
  max-height: 60px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.footer-copyright {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
}

.copyright-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2em;
  height: 1.2em;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  font-size: 0.8em;
  margin-right: 0.3em;
  vertical-align: middle;
}

/* Modal ankiety - przezroczysty */
#surveyModal .modal-content {
  background-color: rgba(20, 20, 20, 0.2) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.03) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

#surveyModal .modal-header,
#surveyModal .modal-footer {
  background-color: transparent !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
}

#surveyModal .modal-body {
  background-color: transparent !important;
}

#surveyModal .alert {
  background-color: rgba(151, 180, 222, 0.1) !important;
  border-color: rgba(151, 180, 222, 0.2) !important;
}

/* Zoom Level - pojawia się na scroll, znika po sekundzie */
#zoomLevel {
  position: absolute;
  bottom: 80px;
  right: 20px;
  background-color: rgba(31, 56, 44, 0.9);
  border: 2px solid #97B4DE;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 14px;
  color: #97B4DE;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  text-align: center;
  min-width: 60px;
}

#zoomLevel.visible {
  opacity: 1;
}

/* Powiększone przyciski w sliderze i modalach */
.slider-step .btn,
.modal .btn {
  padding: 15px 30px !important;
  font-size: 18px !important;
  font-weight: 600 !important;
}

.slider-step .btn-sm,
.modal .btn-sm {
  padding: 12px 20px !important;
  font-size: 16px !important;
}

/* Przyciski główne */
.slider-next,
#submitQuoteBtn,
#submitSurveyAndQuote,
.edit-room-btn,
.remove-room-btn {
  padding: 15px 30px !important;
  font-size: 18px !important;
}

/* Cookie Overlay Modal */
.cookie-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
}

.cookie-modal {
  position: relative;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
}

.cookie-modal-content {
  background-color: #1e1e1e;
  border: 2px solid #AEB6A0;
  border-radius: 12px;
  padding: 40px 30px;
  box-shadow: 0 10px 40px rgba(174, 182, 160, 0.3);
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Blokowanie interakcji ze stroną gdy overlay jest widoczny */
body.cookie-overlay-active {
  overflow: hidden;
}