/* 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 > .container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

body > footer {
  margin-top: auto;
}

/* Typ ografia */
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;
}

/* Karty */
.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);
}

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

/* Formy */
.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);
}

/* Custom Select */
.cs-wrap {
  position: relative;
  user-select: none;
}

.cs-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #2d2d2d;
  border: 1px solid #444;
  border-radius: 0.375rem;
  padding: 0.6rem 0.75rem;
  cursor: pointer;
  min-height: 42px;
  transition: border-color 0.15s ease;
}

.cs-trigger:hover {
  border-color: #97B4DE;
}

.cs-label {
  color: #e0e0e0;
  font-size: 0.95rem;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cs-placeholder {
  color: #9ba3ae;
}

.cs-arrow {
  color: #97B4DE;
  font-size: 0.8rem;
  margin-left: 0.5rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.cs-wrap.cs-open .cs-arrow {
  transform: rotate(180deg);
}

/* Disabled state - TYLKO styl, klikanie blokuje JS */
.cs-wrap.cs-disabled .cs-trigger {
  background-color: #252525;
  border-color: #383838;
  cursor: default;
}

.cs-wrap.cs-disabled .cs-trigger:hover {
  border-color: #383838;
}

.cs-wrap.cs-disabled .cs-label {
  color: #5a6068;
}

.cs-wrap.cs-disabled .cs-arrow {
  color: #4a5058;
}

/* Dropdown */
.cs-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  background-color: #2d2d2d;
  border: 1px solid #97B4DE;
  border-radius: 0.375rem;
  z-index: 1000;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.cs-wrap.cs-open .cs-dropdown {
  display: block;
}

.cs-search {
  display: block;
  width: 100%;
  background-color: #252525;
  border: none;
  border-bottom: 1px solid #444;
  color: #e0e0e0;
  padding: 0.6rem 0.75rem;
  font-size: 0.9rem;
  outline: none;
  box-sizing: border-box;
}

.cs-search::placeholder {
  color: #6c757d;
}

.cs-list {
  max-height: 260px;
  overflow-y: auto;
}

.cs-list::-webkit-scrollbar {
  width: 5px;
}

.cs-list::-webkit-scrollbar-track {
  background: transparent;
}

.cs-list::-webkit-scrollbar-thumb {
  background-color: rgba(151, 180, 222, 0.3);
  border-radius: 3px;
}

.cs-item {
  padding: 0.65rem 0.75rem;
  color: #e0e0e0;
  font-size: 0.95rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background-color 0.1s ease;
}

.cs-item:last-child {
  border-bottom: none;
}

.cs-item:hover,
.cs-item.cs-highlighted {
  background-color: #1F382C;
  color: #97B4DE;
}

.cs-item.cs-empty {
  color: #6c757d;
  cursor: default;
  font-style: italic;
  text-align: center;
}

.cs-item.cs-empty:hover {
  background-color: transparent;
  color: #6c757d;
}

/* Alerty */
.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;
}

/* Download card typography */
.download-card-title {
  color: #adb5bd;
  font-weight: 600;
}

.download-card-subtitle {
  color: #adb5bd;
  font-size: 0.85rem;
}

#productDescriptionText {
  color: #adb5bd;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Download container */
.download-container {
  padding-top: 150px;
  padding-bottom: 48px;
  min-height: auto;
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Lista grupy/produktu */
.list-group-item {
  background-color: #343a40 !important;
  border-color: #6c757d !important;
  color: #e0e0e0 !important;
}

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

/* Powiększone przyciski */
.download-container .btn {
  padding: 15px 30px !important;
  font-size: 18px !important;
  font-weight: 600 !important;
}

.download-container .btn-sm {
  padding: 12px 20px !important;
  font-size: 16px !important;
}

/* Animacje */
.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);
  }
}

/* Footer */
.download-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%;
  margin-top: auto;
}

.download-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;
}

/* Sekcja szczegółów produktu */
.product-details {
  padding: 1.5rem;
  background-color: rgba(31, 56, 44, 0.1);
  border: 1px solid rgba(151, 180, 222, 0.2);
  border-radius: 0.375rem;
  animation: fadeSlideIn 0.5s ease forwards;
}

.product-image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 0.375rem;
  padding: 1rem;
  border: 1px solid rgba(151, 180, 222, 0.15);
}

.product-image {
  max-width: 100%;
  max-height: 280px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.product-description-title {
  color: #97B4DE;
  font-weight: 600;
  border-bottom: 2px solid rgba(151, 180, 222, 0.3);
  padding-bottom: 0.75rem;
}

.product-description-text {
  color: #adb5bd;
  font-size: 0.95rem;
  line-height: 1.7;
  text-align: justify;
}

#productDescriptionText {
  color: #adb5bd;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Responsive */
@media (max-width: 768px) {
  .download-container {
    padding-top: 48px;
  }
  
  .download-container .btn {
    padding: 12px 24px !important;
    font-size: 16px !important;
  }
  
  .product-details {
    padding: 1rem;
  }
  
  .product-image-container {
    min-height: 200px;
    margin-bottom: 1rem;
  }
  
  .product-image {
    max-height: 200px;
  }
  
  .product-description-title {
    font-size: 0.95rem;
  }
  
  .product-description-text {
    font-size: 0.9rem;
  }
}
