/* EventGear Custom Bootstrap Theme */
/* Цветовая стратегия: «Pro-Audio/Lighting» - тёмная тема с металлическими акцентами */

/* Основные стили и шрифт */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  background-color: #0F172A !important; /* Тёмный фон */
  color: #E2E8F0 !important; /* Светлый текст */
  line-height: 1.6;
}

/* Типографика */
h1 {
  font-size: 2.25rem; /* 36px */
  font-weight: 700;
  color: #F1F5F9;
}

h2 {
  font-size: 1.875rem; /* 30px */
  font-weight: 600;
  color: #F1F5F9;
}

h3, h4, h5, h6 {
  font-weight: 600;
  color: #F1F5F9;
}

.text-muted {
  color: #94A3B8 !important; /* Приглушённый серый */
}

/* Переопределение Bootstrap переменных через CSS */
.btn-primary {
  background-color: #1E293B !important; /* Тёмно-серый металлик */
  border-color: #334155 !important;
  color: #F1F5F9 !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  border: none;
  font-weight: 500;
  border-radius: 0.5rem;
}

.btn-primary:hover {
  background-color: #334155 !important;
  border-color: #475569 !important;
  color: #F1F5F9 !important;
  box-shadow: 0 6px 8px -1px rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: #475569 !important; /* Серый металлик */
  border-color: #64748B !important;
  color: #F1F5F9 !important;
  border-radius: 0.5rem;
}

.btn-success {
  background-color: #059669 !important; /* Тёмно-зелёный */
  border-color: #047857 !important;
  color: #F1F5F9 !important;
  border-radius: 0.5rem;
}

.btn-warning {
  background-color: #D97706 !important; /* Тёмно-оранжевый */
  border-color: #B45309 !important;
  color: #F1F5F9 !important;
  border-radius: 0.5rem;
}

.btn-danger {
  background-color: #DC2626 !important; /* Тёмно-красный */
  border-color: #B91C1C !important;
  color: #F1F5F9 !important;
  border-radius: 0.5rem;
}

.btn {
  font-weight: 500;
  border-radius: 0.5rem;
  text-transform: none !important; /* Убираем uppercase */
}

/* Карточки */
.card {
  border: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.2s ease-in-out;
  background-color: #1E293B; /* Тёмно-серый */
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.card-header {
  background-color: transparent !important;
  border-bottom: 1px solid #334155;
  font-weight: 600;
  padding: 1.5rem 1.5rem 1rem;
  color: #F1F5F9;
}

.card-body {
  padding: 1rem 1.5rem 1.5rem;
  color: #E2E8F0;
}

/* Формы */
.form-control {
  border: 1px solid #334155 !important;
  border-radius: 0.5rem;
  font-size: 1rem;
  background-color: #1E293B;
  color: #F1F5F9;
}

.form-control:focus {
  border-color: #475569 !important;
  box-shadow: 0 0 0 0.2rem rgba(71, 85, 105, 0.25) !important;
  background-color: #1E293B;
  color: #F1F5F9;
}

.form-control::placeholder {
  color: #94A3B8;
}

.form-label {
  font-weight: 500;
  color: #F1F5F9;
  margin-bottom: 0.5rem;
}

/* Навигация */
.navbar {
  background-color: #0F172A !important; /* Тёмный фон */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid #334155;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: #F1F5F9 !important;
}

.nav-link {
  font-weight: 500;
  position: relative;
  color: #94A3B8 !important;
}

.nav-link:hover {
  color: #F1F5F9 !important;
}

.nav-link.active {
  color: #F1F5F9 !important;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #475569; /* Металлический акцент */
}

/* Модалки */
.modal-content {
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
  background-color: #1E293B;
  color: #E2E8F0;
}

.modal-header {
  border-bottom: 1px solid #334155;
  padding: 2rem;
}

.modal-body {
  padding: 1rem 2rem;
}

.modal-footer {
  border-top: 1px solid #334155;
  padding: 1rem 2rem 2rem;
}

.modal-backdrop {
  background-color: rgba(0, 0, 0, 0.6) !important;
}

/* Алерты */
.alert {
  border: none;
  border-radius: 0.5rem;
  font-weight: 500;
}

.alert-success {
  background-color: rgba(5, 150, 105, 0.2);
  color: #6EE7B7;
  border-left: 4px solid #059669;
}

.alert-warning {
  background-color: rgba(217, 119, 6, 0.2);
  color: #FCD34D;
  border-left: 4px solid #D97706;
}

.alert-danger {
  background-color: rgba(220, 38, 38, 0.2);
  color: #FCA5A5;
  border-left: 4px solid #DC2626;
}

/* Таблицы */
.table {
  background-color: #1E293B;
  border-radius: 0.5rem;
  overflow: hidden;
  color: #E2E8F0;
}

.table th {
  border-top: none;
  font-weight: 600;
  color: #F1F5F9;
  background-color: #0F172A;
  border-bottom: 1px solid #334155;
}

.table td {
  border-bottom: 1px solid #334155;
}

/* Прогресс-бары */
.progress {
  height: 0.5rem;
  border-radius: 0.5rem;
  background-color: #334155;
}

.progress-bar {
  background-color: #475569; /* Металлический акцент */
}

/* Кастомные компоненты EventGear */

/* Jumbotron для главной страницы */
.jumbotron {
  background: linear-gradient(135deg, #1E293B 0%, #334155 100%);
  border-radius: 0.75rem;
  color: #F1F5F9;
  padding: 3rem;
  border: 1px solid #334155;
}

.jumbotron .display-4 {
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.jumbotron .lead {
  font-weight: 400;
  opacity: 0.9;
}

/* Карточки оборудования */
.equipment-card {
  transition: transform 0.2s ease-in-out;
}

.equipment-card:hover {
  transform: translateY(-4px);
}

.equipment-image {
  height: 200px;
  object-fit: cover;
  border-radius: 0.5rem 0.5rem 0 0;
}

.equipment-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #F1F5F9;
}

.equipment-rating {
  color: #FCD34D; /* Золотистый для рейтинга */
}

/* Статусы бронирования */
.status-badge {
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
}

.status-pending {
  background-color: rgba(71, 85, 105, 0.3);
  color: #94A3B8;
}

.status-confirmed {
  background-color: rgba(5, 150, 105, 0.3);
  color: #6EE7B7;
}

.status-active {
  background-color: rgba(71, 85, 105, 0.3);
  color: #F1F5F9;
}

.status-completed {
  background-color: rgba(5, 150, 105, 0.3);
  color: #6EE7B7;
}

.status-cancelled {
  background-color: rgba(220, 38, 38, 0.3);
  color: #FCA5A5;
}

.status-disputed {
  background-color: rgba(217, 119, 6, 0.3);
  color: #FCD34D;
}

/* Wizard для приемки оборудования */
.inspection-wizard .wizard-step {
  padding: 1.5rem;
  border-radius: 0.5rem;
  background-color: #1E293B;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  margin-bottom: 1rem;
  border: 1px solid #334155;
}

.inspection-wizard .wizard-step.active {
  border: 2px solid #475569;
}

.inspection-wizard .wizard-step.completed {
  border: 2px solid #059669;
  background-color: rgba(5, 150, 105, 0.1);
}

.inspection-wizard .wizard-progress {
  height: 4px;
  background-color: #334155;
  border-radius: 2px;
  margin-bottom: 2rem;
}

.inspection-wizard .wizard-progress .progress-bar {
  background: linear-gradient(90deg, #059669 0%, #475569 100%);
}

/* Фото галерея */
.photo-gallery .photo-item {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}

.photo-gallery .photo-item:hover {
  transform: scale(1.02);
}

.photo-gallery .photo-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.photo-gallery .photo-item .photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.photo-gallery .photo-item .photo-overlay .photo-icon {
  color: white;
  font-size: 2rem;
}

.photo-gallery .photo-item:hover .photo-overlay {
  opacity: 1;
}

/* Side-by-side сравнение фото */
.photo-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.photo-comparison .comparison-item {
  text-align: center;
}

.photo-comparison .comparison-item .comparison-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #94A3B8;
}

.photo-comparison .comparison-item .comparison-photo {
  border-radius: 0.5rem;
  border: 2px solid #334155;
}

.photo-comparison .comparison-item .comparison-photo.checkout {
  border-color: #059669;
}

.photo-comparison .comparison-item .comparison-photo.checkin {
  border-color: #D97706;
}

/* Footer */
.footer {
  background-color: #0F172A !important;
  border-top: 1px solid #334155;
  color: #94A3B8;
}

/* Утилиты */
.text-primary-custom {
  color: #F1F5F9 !important;
}

.bg-primary-custom {
  background-color: #1E293B !important;
}

.border-primary-custom {
  border-color: #334155 !important;
}

/* Адаптивность */
@media (max-width: 768px) {
  .btn {
    min-height: 48px;
  }
  
  .form-control {
    font-size: 16px; /* Предотвращает зум на iOS */
  }
  
  .modal-header,
  .modal-body,
  .modal-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .jumbotron {
    padding: 2rem;
  }
}

/* Дополнительные стили для тёмной темы */
.bg-light {
  background-color: #1E293B !important;
  color: #E2E8F0 !important;
}

.text-muted {
  color: #94A3B8 !important;
}

/* Ссылки */
a {
  color: #94A3B8;
}

a:hover {
  color: #F1F5F9;
}

/* Dropdown */
.dropdown-menu {
  background-color: #1E293B;
  border: 1px solid #334155;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dropdown-item {
  color: #E2E8F0;
}

.dropdown-item:hover {
  background-color: #334155;
  color: #F1F5F9;
}

.dropdown-divider {
  border-top: 1px solid #334155;
}
