﻿/* ICFESSK - Admin Dashboard Styles */
/* Extracted from pages.css - V7 CSS cleanup */

/* â”€â”€ Admin Dashboard â€” Clean Stitch-inspired â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: #F8F8F6;
}

/* â”€â”€ Sidebar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.admin-sidebar {
  width: 260px;
  background: #fff;
  border-right: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 20;
}

.admin-sidebar-logo {
  padding: 20px 24px;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-logo-video {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
}

.admin-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.admin-logo-brand {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--violet);
}

.admin-logo-sub {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #2B2B2B;
}

/* â”€â”€ Sidebar Nav â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.admin-sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #8E8A86;
  text-decoration: none;
  transition: all 0.15s ease;
}

.admin-nav-item .material-symbols-outlined {
  font-size: 20px;
}

.admin-nav-item:hover {
  background: rgba(108, 43, 255, 0.06);
  color: var(--violet);
}

.admin-nav-item.active {
  background: rgba(108, 43, 255, 0.08);
  color: var(--violet);
  font-weight: 600;
}

.admin-nav-item--secondary {
  color: #8E8A86;
}

.admin-nav-separator {
  height: 1px;
  background: #f3f4f6;
  margin: 12px 8px;
}

/* â”€â”€ Sidebar User â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.admin-sidebar-user {
  padding: 16px 16px;
  border-top: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f3f4f6;
  color: #2B2B2B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.admin-user-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.admin-user-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #2B2B2B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-user-role {
  font-size: 0.7rem;
  color: #8E8A86;
}

.admin-logout-btn {
  background: none;
  border: none;
  color: #8E8A86;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: color 0.15s;
}

.admin-logout-btn:hover {
  color: var(--violet);
}

.admin-logout-btn .material-symbols-outlined {
  font-size: 20px;
}

/* â”€â”€ Main Content â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

/* â”€â”€ Top Bar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.admin-topbar {
  height: 60px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  flex-shrink: 0;
}

.admin-topbar-search {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.admin-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #8E8A86;
  pointer-events: none;
}

.admin-search-input {
  width: 100%;
  padding: 8px 12px 8px 40px;
  border: none;
  background: #f3f4f6;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #2B2B2B;
  transition: all 0.2s;
  outline: none;
}

.admin-search-input:focus {
  background: #fff;
  box-shadow: 0 0 0 2px rgba(108, 43, 255, 0.15);
}

.admin-search-input::placeholder {
  color: #8E8A86;
}

.admin-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-notification-btn {
  position: relative;
  background: none;
  border: none;
  color: #8E8A86;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: color 0.15s;
}

.admin-notification-btn:hover {
  color: var(--violet);
}

.admin-notification-btn .material-symbols-outlined {
  font-size: 22px;
}

/* â”€â”€ Content Scroll Area â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.admin-content {
  flex: 1;
  overflow-y: auto;
  padding: 32px;
}

/* â”€â”€ Page Header â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.admin-page-header {
  margin-bottom: 28px;
}

.admin-page-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #2B2B2B;
  margin-bottom: 4px;
}

.admin-page-header p {
  font-size: 0.88rem;
  color: #8E8A86;
}

/* â”€â”€ KPI Cards â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

@media (max-width: 1100px) {
  .admin-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .admin-kpi-grid {
    grid-template-columns: 1fr;
  }
}

.admin-kpi-card {
  background: #fff;
  border: 1px solid #f0eeeb;
  border-radius: 14px;
  padding: 22px 24px;
  transition: box-shadow 0.2s ease;
}

.admin-kpi-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.admin-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.admin-kpi-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8E8A86;
}

.admin-kpi-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #2B2B2B;
  line-height: 1.1;
}

.admin-kpi-meta {
  font-size: 0.75rem;
  color: #8E8A86;
  margin-top: 8px;
}

/* â”€â”€ Generic Card â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.admin-card {
  background: #fff;
  border: 1px solid #f0eeeb;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
}

.admin-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: #2B2B2B;
  margin-bottom: 20px;
}

.admin-card-title .material-symbols-outlined {
  font-size: 20px;
  color: #8E8A86;
}

/* â”€â”€ Charts Row â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.admin-charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .admin-charts-row {
    grid-template-columns: 1fr;
  }
}

/* â”€â”€ Toolbar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.admin-toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.admin-toolbar-search {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.admin-filter-select {
  padding: 8px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  font-size: 0.85rem;
  color: #2B2B2B;
  outline: none;
  cursor: pointer;
}

.admin-filter-select:focus {
  border-color: var(--violet);
}

/* â”€â”€ Tables (in cards) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8E8A86;
  padding: 12px 16px;
  background: #fafaf9;
  border-bottom: 1px solid #f0eeeb;
}

.admin-table td {
  padding: 12px 16px;
  font-size: 0.85rem;
  color: #2B2B2B;
  border-bottom: 1px solid #f0eeeb;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover {
  background: rgba(248, 248, 246, 0.6);
}

/* â”€â”€ Legacy compat (admin-section â†’ admin-card) â”€â”€ */
.admin-section {
  background: #fff;
  border: 1px solid #f0eeeb;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
}

.admin-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: #2B2B2B;
  margin-bottom: 20px;
}

.admin-section-title .material-symbols-outlined {
  font-size: 20px;
  color: #8E8A86;
}

.admin-section-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .admin-section-row {
    grid-template-columns: 1fr;
  }
}

/* â”€â”€ Stats grid (legacy compat for admin.js) â”€â”€â”€ */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

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

@media (max-width: 480px) {
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }
}

.admin-stat-card {
  background: #fff;
  border: 1px solid #f0eeeb;
  border-radius: 14px;
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-stat-info {
  display: flex;
  flex-direction: column;
}

.admin-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #2B2B2B;
  line-height: 1;
}

.admin-stat-label {
  font-size: 0.75rem;
  color: #8E8A86;
  font-weight: 500;
  margin-top: 2px;
}

/* â”€â”€ List items â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.admin-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f0eeeb;
  font-size: 0.85rem;
}

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

.admin-list-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--violet);
  flex-shrink: 0;
}

/* â”€â”€ Tab animation â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.admin-tab {
  animation: adminFadeIn 0.25s ease;
}

@keyframes adminFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* â”€â”€ Mobile sidebar hide â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 768px) {
  .admin-sidebar {
    display: none;
  }

  .admin-content {
    padding: 20px 16px;
  }

  .admin-topbar {
    padding: 0 16px;
  }
}

