/* ================================
   DASHBOARD STYLES
================================ */

.dashboard-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.dashboard-sidebar {
  width: 260px;
  background: var(--navy);
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
  transition: transform 0.3s ease;
}

@media (max-width: 991px) {
  .dashboard-sidebar {
    transform: translateX(-100%);
  }

  .dashboard-sidebar.active {
    transform: translateX(0);
  }
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--navy-light);
}

.sidebar-header img {
  height: 40px;
  filter: brightness(0) invert(1);
}

.sidebar-nav {
  padding: 1rem 0;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  transition: var(--transition);
}

.sidebar-nav a:hover {
  color: white;
  background: var(--navy-light);
}

.sidebar-nav a.active {
  color: white;
  background: var(--red-accent);
}

.sidebar-nav a i {
  width: 20px;
  text-align: center;
}

.sidebar-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--navy-light);
}

.sidebar-footer a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.sidebar-footer a:hover {
  color: white;
}

/* Main Content */
.dashboard-main {
  flex: 1;
  margin-left: 260px;
  background: var(--gray-100);
  min-height: 100vh;
}

@media (max-width: 991px) {
  .dashboard-main {
    margin-left: 0;
  }
}

/* Dashboard Header */
.dashboard-header {
  background: white;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 50;
}

.dashboard-header h1 {
  font-size: 1.25rem;
  margin: 0;
}

.dashboard-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--navy);
  cursor: pointer;
}

@media (max-width: 991px) {
  .dashboard-menu-btn {
    display: block;
  }
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-menu .user-name {
  font-weight: 600;
  font-size: 0.875rem;
}

.user-menu .user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* Dashboard Content */
.dashboard-content {
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .dashboard-content {
    padding: 2rem;
  }
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 576px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat-card .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.stat-card .stat-icon.primary {
  background: rgba(26, 54, 93, 0.1);
  color: var(--navy);
}

.stat-card .stat-icon.success {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.stat-card .stat-icon.warning {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.stat-card .stat-icon.danger {
  background: rgba(220, 38, 38, 0.1);
  color: var(--red-accent);
}

.stat-card .stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.stat-card .stat-label {
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* Dashboard Cards */
.dashboard-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.dashboard-card-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dashboard-card-header h2 {
  font-size: 1rem;
  margin: 0;
}

.dashboard-card-body {
  padding: 1.5rem;
}

/* Dashboard Overlay */
.dashboard-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 99;
}

.dashboard-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Form in Dashboard */
.dashboard-form .form-row {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .dashboard-form .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Crew List */
.crew-list {
  list-style: none;
}

.crew-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--gray-200);
}

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

.crew-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  font-weight: 600;
}

.crew-info {
  flex: 1;
}

.crew-info h4 {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.crew-info p {
  font-size: 0.75rem;
  color: var(--gray-500);
}

.crew-actions {
  display: flex;
  gap: 0.5rem;
}

.crew-actions button {
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-300);
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  transition: var(--transition);
}

.crew-actions button:hover {
  background: var(--gray-100);
}

.crew-actions button.delete:hover {
  background: #fef2f2;
  border-color: #fecaca;
  color: var(--red-accent);
}

/* Inscriptions List */
.inscription-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--gray-200);
}

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

.inscription-info h4 {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.inscription-info p {
  font-size: 0.75rem;
  color: var(--gray-500);
}

.inscription-status {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.inscription-status.confirmed {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.inscription-status.pending {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.inscription-status.cancelled {
  background: rgba(220, 38, 38, 0.1);
  color: var(--red-accent);
}

/* News Detail & List Improvements */
.btn-back:hover { color: var(--red-accent) !important; }
.gallery-thumb:hover { transform: translateY(-5px); }
.doc-card:hover { border-color: var(--red-accent) !important; background-color: white !important; }
.news-content-body p { margin-bottom: 1.5rem; }
.news-content-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 2rem 0; }

.pagination .page-link {
    padding: 0.5rem 0.8rem;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    color: var(--gray-700);
    text-decoration: none;
    transition: all 0.2s;
}
.pagination .page-link:hover {
    background-color: var(--gray-100);
    border-color: var(--red-accent);
    color: var(--red-accent);
}
.pagination .page-link.current {
    background-color: var(--red-accent);
    border-color: var(--red-accent);
    color: white;
}

@media (max-width: 768px) {
    .dashboard-card-body { padding: 1.5rem !important; }
    .featured-image-wrapper { height: 250px !important; }
    .news-header-info h1 { font-size: 1.75rem !important; }
}
