/* ==========================================================================
   DesammyFx Academy - Admin Dashboard Stylesheet
   Full Light Mode & Dark Mode Support matching Emerald Green brand
   ========================================================================== */

.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  background: var(--bg-primary);
  color: var(--text-primary);
}

.admin-sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.admin-sidebar-header {
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-sidebar-menu {
  list-style: none;
  padding: 1rem 0;
  margin: 0;
  flex: 1;
}

.admin-sidebar-menu li a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.admin-sidebar-menu li a:hover,
.admin-sidebar-menu li a.active {
  color: var(--brand-green);
  background: var(--brand-green-subtle);
  border-left-color: var(--brand-green);
}

.admin-sidebar-footer {
  padding: 1.25rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.admin-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-topbar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.admin-content {
  padding: 2rem;
  flex: 1;
}

/* Stat Cards */
.admin-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.2s ease;
}
.admin-stat-card:hover {
  border-color: var(--border-brand);
}

/* Admin Data Table */
.admin-table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.admin-table-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.admin-table th {
  background: var(--bg-secondary);
  padding: 0.85rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-color);
}

.admin-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.admin-table tr:hover td {
  background: var(--brand-green-subtle);
}

/* Form Styles */
.admin-form-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.admin-form-group {
  margin-bottom: 1.5rem;
}

.admin-form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
}

.admin-form-help {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  display: block;
}

/* Responsive */
@media (max-width: 991px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    display: none;
  }
  .admin-sidebar.open {
    display: flex;
    position: fixed;
    z-index: 1000;
    width: 280px;
    box-shadow: var(--shadow-lg);
  }
}

/* ==========================================================================
   Multi-Video Lessons Upload Manager
   ========================================================================== */

.video-manager-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-brand);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.video-manager-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.video-manager-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.video-manager-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.video-manager-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--brand-green-subtle);
  color: var(--brand-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  border: 1px solid var(--border-brand);
}

.video-manager-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: var(--bg-secondary);
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.video-slots-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.video-slot-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.25rem;
  position: relative;
  transition: all 0.2s ease;
}

.video-slot-card:hover {
  border-color: var(--border-brand);
}

.video-slot-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px dashed var(--border-color);
}

.slot-number-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--brand-green);
  font-family: var(--font-mono);
}

.btn-remove-slot {
  background: rgba(239, 68, 68, 0.1);
  color: var(--bear-red);
  border: 1px solid rgba(239, 68, 68, 0.25);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.2s ease;
}

.btn-remove-slot:hover {
  background: var(--bear-red);
  color: #ffffff;
}

.existing-video-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--brand-green-subtle);
  border: 1px solid var(--border-brand);
  padding: 0.6rem 0.85rem;
  border-radius: 6px;
  margin-top: 0.5rem;
  font-size: 0.84rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.video-type-tabs {
  display: inline-flex;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  margin-bottom: 0.6rem;
}

.video-type-tab-btn {
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.video-type-tab-btn.active {
  background: var(--brand-green);
  color: #ffffff;
}

.video-manager-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

