/* ============================================================
   PAVSN - Main Stylesheet
   Pan-African Virtual Simulation Network
   ============================================================ */

/* --- ROOT VARIABLES --- */
:root {
  --primary:       #006D77;
  --primary-dark:  #005560;
  --primary-light: #e0f4f5;
  --secondary:     #0A2342;
  --accent:        #00B894;
  --accent-light:  #d4f5ed;
  --bg:            #F5F7FA;
  --bg-white:      #ffffff;
  --text:          #1F2937;
  --text-muted:    #6B7280;
  --border:        #E5E7EB;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.08);
  --shadow:        0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:     0 8px 32px rgba(0,0,0,.14);
  --radius:        10px;
  --radius-lg:     16px;
  --font-body:     'Inter', sans-serif;
  --font-heading:  'Poppins', sans-serif;
  --transition:    .25s ease;
  --navbar-h:      70px;
}

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.65;
  font-size: 15px;
}
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); font-weight: 700; color: var(--secondary); }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.text-primary-pavsn { color: var(--primary) !important; }
.bg-primary-pavsn { background-color: var(--primary) !important; }

/* --- NAVBAR --- */
.pavsn-navbar {
  background: var(--secondary);
  height: var(--navbar-h);
  box-shadow: 0 2px 12px rgba(10,35,66,.35);
  padding: 0;
}
.pavsn-navbar .navbar-brand { padding: 0; }
.brand-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.2rem;
}
.brand-name  { font-family: var(--font-heading); font-weight: 800; font-size: 1.3rem; color: #fff; line-height: 1.1; }
.brand-tagline { font-size: .65rem; color: rgba(255,255,255,.6); letter-spacing: .5px; }
.pavsn-navbar .nav-link { color: rgba(255,255,255,.82) !important; font-weight: 500; font-size: .88rem; padding: .5rem .75rem !important; border-radius: 6px; transition: all var(--transition); }
.pavsn-navbar .nav-link:hover,
.pavsn-navbar .nav-link.active { color: #fff !important; background: rgba(255,255,255,.12); }

.nav-search { max-width: 320px; width: 100%; }
.nav-search .form-control {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff; font-size: .85rem;
  border-radius: 8px 0 0 8px;
}
.nav-search .form-control::placeholder { color: rgba(255,255,255,.5); }
.nav-search .form-control:focus { background: rgba(255,255,255,.18); box-shadow: none; border-color: var(--accent); color: #fff; }
.btn-search { background: var(--accent); border: none; color: #fff; border-radius: 0 8px 8px 0; padding: 0 14px; }

.nav-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
.nav-icon-btn { color: rgba(255,255,255,.8) !important; font-size: 1.1rem; padding: .45rem .6rem !important; position: relative; }
.badge-dot {
  position: absolute; top: 2px; right: 2px;
  background: #ef4444; color: #fff;
  font-size: .6rem; font-weight: 700;
  min-width: 16px; height: 16px;
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--secondary);
}
.notif-dropdown { width: 340px; max-height: 420px; overflow-y: auto; }
.notif-header { border-bottom: 1px solid var(--border); background: var(--bg); }
.notif-item { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); transition: background var(--transition); }
.notif-item:hover { background: var(--bg); }
.notif-item.unread { background: #edf6f7; }
.notif-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--primary-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--primary); font-size: .85rem; }
.user-dropdown { min-width: 220px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.user-dropdown .dropdown-header { background: var(--bg); }

/* --- HERO SECTION --- */
.hero-section {
  background: linear-gradient(135deg, var(--secondary) 0%, #0d3660 50%, #0a4a5e 100%);
  min-height: calc(100vh - var(--navbar-h));
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23006D77' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: .6;
}
.hero-badge { background: rgba(0,184,148,.15); border: 1px solid rgba(0,184,148,.3); color: var(--accent); border-radius: 20px; padding: .3rem 1rem; font-size: .8rem; font-weight: 600; display: inline-block; margin-bottom: 1.2rem; }
.hero-title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; color: #fff; line-height: 1.15; margin-bottom: 1rem; }
.hero-title .highlight { color: var(--accent); }
.hero-subtitle { font-size: 1.05rem; color: rgba(255,255,255,.75); margin-bottom: 2rem; max-width: 560px; }
.hero-actions .btn { padding: .75rem 1.8rem; font-weight: 600; border-radius: 8px; font-size: .95rem; }
.btn-hero-primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 4px 20px rgba(0,184,148,.4); }
.btn-hero-primary:hover { background: #00a07e; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,184,148,.45); }
.btn-hero-outline { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-hero-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); color: #fff; }
.hero-stats { display: flex; gap: 2rem; margin-top: 2.5rem; flex-wrap: wrap; }
.hero-stat-item .stat-num { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 800; color: var(--accent); display: block; }
.hero-stat-item .stat-lbl { font-size: .75rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .5px; }
.hero-visual { position: relative; }
.hero-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  margin-bottom: 1rem;
}
.hero-card-main { background: rgba(255,255,255,.1); }
.hero-dept-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: .75rem; margin-top: 1rem; }
.hero-dept-item { background: rgba(255,255,255,.08); border-radius: 8px; padding: .6rem; text-align: center; }
.hero-dept-item i { font-size: 1.2rem; color: var(--accent); display: block; margin-bottom: .3rem; }
.hero-dept-item span { font-size: .7rem; color: rgba(255,255,255,.7); }
.hero-float-badge {
  position: absolute; bottom: -15px; left: -10px;
  background: #fff; border-radius: 10px; padding: .7rem 1rem;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: .6rem; font-size: .8rem;
}
.hero-float-badge .count { font-weight: 700; color: var(--primary); font-size: 1.1rem; }

/* --- SECTION STYLES --- */
.section-label { color: var(--primary); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: .5rem; display: block; }
.section-title { font-size: clamp(1.6rem, 4vw, 2.2rem); color: var(--secondary); font-weight: 800; margin-bottom: .5rem; }
.section-subtitle { color: var(--text-muted); font-size: 1rem; max-width: 540px; }
.section-divider { width: 60px; height: 4px; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 2px; margin: 1rem 0; }
.section-bg-white { background: #fff; }
.section-bg-dark  { background: var(--secondary); color: #fff; }
.section-padding  { padding: 80px 0; }

/* --- STAT COUNTER CARDS --- */
.stats-section { background: var(--secondary); padding: 60px 0; }
.stat-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform var(--transition), background var(--transition);
}
.stat-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.12); }
.stat-icon { width: 56px; height: 56px; border-radius: 14px; margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.stat-number { font-family: var(--font-heading); font-size: 2.4rem; font-weight: 800; color: var(--accent); display: block; line-height: 1.1; }
.stat-label  { color: rgba(255,255,255,.7); font-size: .85rem; margin-top: .4rem; }

/* --- DEPARTMENT CARDS --- */
.dept-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  height: 100%;
  position: relative;
  overflow: hidden;
}
.dept-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0); transition: transform var(--transition);
}
.dept-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--primary); }
.dept-card:hover::before { transform: scaleX(1); }
.dept-icon { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.dept-name  { font-weight: 700; font-size: 1rem; color: var(--secondary); margin-bottom: .3rem; }
.dept-count { color: var(--text-muted); font-size: .82rem; }
.dept-arrow { color: var(--primary); opacity: 0; transform: translateX(-6px); transition: all var(--transition); margin-top: .8rem; display: inline-block; }
.dept-card:hover .dept-arrow { opacity: 1; transform: translateX(0); }

/* --- CASE CARDS --- */
.case-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all var(--transition);
  height: 100%;
}
.case-card:hover { box-shadow: var(--shadow); border-color: #c5dde0; transform: translateY(-2px); }
.case-dept-tag { background: var(--primary-light); color: var(--primary); font-size: .72rem; font-weight: 600; padding: .25rem .75rem; border-radius: 20px; }
.case-title { font-weight: 700; font-size: 1rem; color: var(--secondary); margin: .75rem 0 .5rem; line-height: 1.4; }
.case-summary { color: var(--text-muted); font-size: .88rem; line-height: 1.55; }
.case-meta { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; font-size: .8rem; color: var(--text-muted); flex-wrap: wrap; }
.case-meta-item { display: flex; align-items: center; gap: .3rem; }
.case-actions { display: flex; gap: .5rem; margin-top: 1rem; }
.btn-case { font-size: .8rem; padding: .35rem .9rem; border-radius: 6px; font-weight: 500; }
.author-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }

/* --- LIBRARY PREVIEW --- */
.library-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  transition: all var(--transition);
  display: flex; align-items: center; gap: 1rem;
}
.library-card:hover { box-shadow: var(--shadow-sm); border-color: var(--primary); }
.library-letter { width: 40px; height: 40px; background: var(--primary-light); color: var(--primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem; flex-shrink: 0; }
.library-term { font-weight: 600; font-size: .95rem; color: var(--secondary); }
.library-category { font-size: .75rem; color: var(--text-muted); }

/* --- ABOUT SECTION --- */
.about-feature { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.about-icon { width: 48px; height: 48px; background: var(--primary-light); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1.2rem; flex-shrink: 0; }
.about-text h6 { font-weight: 700; color: var(--secondary); margin-bottom: .25rem; }
.about-text p  { color: var(--text-muted); font-size: .88rem; margin: 0; }
.hub-spoke-img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* --- BUTTONS --- */
.btn-primary   { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-accent    { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: #00a07e; color: #fff; }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); color: #fff; }

/* --- FORMS --- */
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 .2rem rgba(0,109,119,.15); }
.form-label { font-weight: 500; font-size: .9rem; color: var(--secondary); }
.pavsn-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-sm); }
.auth-card { max-width: 480px; margin: 0 auto; }

/* --- DASHBOARD LAYOUT --- */
.dashboard-wrapper { display: flex; min-height: calc(100vh - var(--navbar-h)); }
.pavsn-sidebar {
  width: 260px; min-width: 260px;
  background: var(--secondary);
  min-height: 100%;
  padding: 0 0 2rem;
  position: relative;
  flex-shrink: 0;
}
.sidebar-user-card { padding: 1.5rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent); margin-bottom: .75rem; }
.sidebar-user-name { font-weight: 700; color: #fff; font-size: .95rem; }
.sidebar-user-role { margin: .3rem 0; }
.sidebar-user-inst { font-size: .72rem; color: rgba(255,255,255,.5); margin-top: .2rem; }
.sidebar-nav { padding: 1rem 0; }
.sidebar-section-label { color: rgba(255,255,255,.35); font-size: .65rem; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; padding: .8rem 1.25rem .3rem; }
.sidebar-menu { list-style: none; padding: 0; margin: 0; }
.sidebar-item a { display: flex; align-items: center; gap: .75rem; padding: .7rem 1.25rem; color: rgba(255,255,255,.7); font-size: .87rem; font-weight: 500; transition: all var(--transition); border-left: 3px solid transparent; }
.sidebar-item a:hover,
.sidebar-item.active > a { color: #fff; background: rgba(255,255,255,.08); border-left-color: var(--accent); }
.sidebar-item a i { width: 18px; text-align: center; }
.sidebar-badge { background: var(--accent); color: #fff; border-radius: 10px; font-size: .65rem; font-weight: 700; padding: .15rem .5rem; margin-left: auto; }
.text-danger-sidebar { color: rgba(239,68,68,.8) !important; }
.text-danger-sidebar:hover { color: #ef4444 !important; }
.dashboard-main { flex: 1; padding: 2rem; overflow-x: hidden; background: var(--bg); }

/* --- ADMIN TABLE --- */
.admin-table { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.admin-table thead { background: var(--secondary); color: #fff; }
.admin-table thead th { font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .5px; padding: .9rem 1rem; border: none; }
.admin-table tbody td { padding: .85rem 1rem; vertical-align: middle; border-bottom: 1px solid var(--border); font-size: .88rem; }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: var(--bg); }

/* --- METRICS CARD --- */
.metric-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; display: flex; align-items: center; gap: 1.2rem; }
.metric-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.metric-value { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 800; line-height: 1; color: var(--secondary); }
.metric-label { color: var(--text-muted); font-size: .8rem; margin-top: .25rem; }
.metric-change { font-size: .75rem; font-weight: 600; }
.metric-change.positive { color: #10b981; }
.metric-change.negative { color: #ef4444; }

/* --- BADGE COLORS --- */
.badge-primary-soft   { background: var(--primary-light); color: var(--primary); }
.badge-success-soft   { background: #d1fae5; color: #059669; }
.badge-warning-soft   { background: #fef3c7; color: #d97706; }
.badge-danger-soft    { background: #fee2e2; color: #dc2626; }
.badge-secondary-soft { background: #f3f4f6; color: #6b7280; }

/* --- MCQ STYLES --- */
.mcq-option { border: 2px solid var(--border); border-radius: 8px; padding: .9rem 1.2rem; cursor: pointer; transition: all var(--transition); margin-bottom: .7rem; display: flex; align-items: center; gap: .75rem; }
.mcq-option:hover { border-color: var(--primary); background: var(--primary-light); }
.mcq-option.correct { border-color: #10b981; background: #d1fae5; color: #065f46; }
.mcq-option.incorrect { border-color: #ef4444; background: #fee2e2; color: #7f1d1d; }
.mcq-option.selected { border-color: var(--primary); background: var(--primary-light); }
.mcq-option-letter { width: 28px; height: 28px; border-radius: 50%; background: var(--border); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; flex-shrink: 0; }
.mcq-timer { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.mcq-timer.warning { color: #f59e0b; animation: pulse 1s infinite; }
.mcq-timer.danger  { color: #ef4444; animation: pulse .5s infinite; }
.progress-mcq { height: 6px; border-radius: 3px; }
.mcq-explanation { background: var(--accent-light); border-left: 4px solid var(--accent); border-radius: 0 8px 8px 0; padding: 1rem 1.2rem; margin-top: 1rem; display: none; }
.mcq-explanation.show { display: block; }

/* --- LIBRARY --- */
.alpha-nav { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 2rem; }
.alpha-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-weight: 700; font-size: .85rem; border: 1px solid var(--border); background: #fff; color: var(--secondary); transition: all var(--transition); cursor: pointer; }
.alpha-btn:hover, .alpha-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* --- DISCUSSION / COMMENTS --- */
.comment-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.comment-item { padding: 1.2rem; border-bottom: 1px solid var(--border); }
.comment-item:last-child { border-bottom: none; }
.comment-reply { margin-left: 2.5rem; background: var(--bg); border-radius: 8px; padding: 1rem; margin-top: .75rem; border-left: 3px solid var(--primary-light); }
.comment-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.comment-author { font-weight: 600; font-size: .9rem; color: var(--secondary); }
.comment-time { font-size: .75rem; color: var(--text-muted); }
.comment-content { margin: .5rem 0; font-size: .92rem; color: var(--text); }
.comment-actions { display: flex; gap: 1rem; font-size: .8rem; }
.comment-action-btn { color: var(--text-muted); background: none; border: none; cursor: pointer; display: flex; align-items: center; gap: .3rem; transition: color var(--transition); }
.comment-action-btn:hover { color: var(--primary); }
.comment-action-btn.liked { color: #ef4444; }

/* --- MESSAGING --- */
.messages-layout { display: grid; grid-template-columns: 320px 1fr; height: calc(100vh - 140px); background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.conv-list { border-right: 1px solid var(--border); overflow-y: auto; }
.conv-item { display: flex; align-items: center; gap: .75rem; padding: .9rem 1rem; cursor: pointer; border-bottom: 1px solid var(--border); transition: background var(--transition); }
.conv-item:hover, .conv-item.active { background: var(--primary-light); }
.conv-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.conv-name   { font-weight: 600; font-size: .88rem; }
.conv-preview { font-size: .78rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-time   { font-size: .72rem; color: var(--text-muted); }
.chat-area { display: flex; flex-direction: column; }
.chat-header { padding: 1rem 1.2rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: .75rem; background: #fff; }
.chat-messages { flex: 1; overflow-y: auto; padding: 1.2rem; background: var(--bg); }
.msg-bubble { max-width: 65%; padding: .65rem .95rem; border-radius: 12px; font-size: .88rem; margin-bottom: .6rem; }
.msg-bubble.sent     { background: var(--primary); color: #fff; margin-left: auto; border-radius: 12px 12px 2px 12px; }
.msg-bubble.received { background: #fff; border: 1px solid var(--border); border-radius: 12px 12px 12px 2px; }
.msg-time { font-size: .68rem; opacity: .7; margin-top: .2rem; text-align: right; }
.chat-input { border-top: 1px solid var(--border); padding: .75rem 1rem; display: flex; gap: .5rem; align-items: center; }

/* --- SEARCH --- */
.search-result-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin-bottom: .75rem; transition: all var(--transition); }
.search-result-item:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.search-highlight { background: rgba(0,184,148,.2); border-radius: 2px; padding: 0 2px; }

/* --- FOOTER --- */
.pavsn-footer { background: var(--secondary); color: rgba(255,255,255,.75); }
.footer-top { padding: 60px 0 40px; }
.footer-brand-icon { width: 42px; height: 42px; background: linear-gradient(135deg, var(--primary), var(--accent)); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.2rem; }
.footer-brand-name  { font-family: var(--font-heading); font-weight: 800; font-size: 1.2rem; color: #fff; }
.footer-brand-sub   { font-size: .65rem; color: rgba(255,255,255,.5); }
.footer-desc  { font-size: .85rem; color: rgba(255,255,255,.6); line-height: 1.7; }
.footer-heading { color: #fff; font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: rgba(255,255,255,.6); font-size: .85rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--accent); }
.footer-social { display: flex; }
.social-link { width: 36px; height: 36px; background: rgba(255,255,255,.08); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.7); font-size: .88rem; transition: all var(--transition); }
.social-link:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.footer-badge { font-size: .7rem; color: rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.15); border-radius: 4px; padding: .2rem .5rem; display: inline-block; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.2rem 0; font-size: .82rem; color: rgba(255,255,255,.5); }
.footer-bottom a { color: rgba(255,255,255,.5); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--accent); }

/* --- BACK TO TOP --- */
.btn-back-top { position: fixed; bottom: 2rem; right: 2rem; width: 44px; height: 44px; background: var(--primary); color: #fff; border: none; border-radius: 10px; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transform: translateY(12px); transition: all var(--transition); box-shadow: var(--shadow); z-index: 999; }
.btn-back-top.visible { opacity: 1; transform: translateY(0); }
.btn-back-top:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* --- AI MAINTENANCE --- */
.ai-maintenance { background: linear-gradient(135deg, var(--secondary) 0%, #0d3660 100%); min-height: 100vh; display: flex; align-items: center; }
.ai-orb { width: 160px; height: 160px; background: radial-gradient(circle, var(--accent) 0%, var(--primary) 60%, var(--secondary) 100%); border-radius: 50%; margin: 0 auto 2rem; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: #fff; animation: pulse-orb 3s ease infinite; box-shadow: 0 0 60px rgba(0,184,148,.3); }
@keyframes pulse-orb { 0%,100% { transform: scale(1); box-shadow: 0 0 60px rgba(0,184,148,.3); } 50% { transform: scale(1.05); box-shadow: 0 0 100px rgba(0,184,148,.5); } }

/* --- ANIMATIONS --- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .6; } }
.fade-up { animation: fadeUp .6s ease both; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .4s; }
.delay-5 { animation-delay: .5s; }

/* --- SCROLLBAR --- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e0; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #a0aec0; }

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
  .pavsn-sidebar { display: none; }
  .dashboard-main { padding: 1rem; }
  .messages-layout { grid-template-columns: 1fr; }
  .hero-section { min-height: auto; padding: 4rem 0; }
  .nav-search { display: none; }
}
@media (max-width: 768px) {
  .section-padding { padding: 50px 0; }
  .hero-dept-grid { grid-template-columns: repeat(2,1fr); }
  .hero-stats { gap: 1.2rem; }
  .hero-stat-item .stat-num { font-size: 1.3rem; }
}
@media (max-width: 576px) {
  .stat-card { padding: 1.2rem 1rem; }
  .stat-number { font-size: 1.8rem; }
  .pavsn-card { padding: 1.25rem; }
}

/* --- UTILITY --- */
.cursor-pointer { cursor: pointer; }
.border-primary-pavsn { border-color: var(--primary) !important; }
.bg-light-pavsn { background: var(--bg) !important; }
.text-success-pavsn { color: #10b981 !important; }
.section-header { margin-bottom: 3rem; }

/* --- CASE DETAIL --- */
.case-detail-section { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 1rem; overflow: hidden; }
.case-detail-header { background: var(--secondary); color: #fff; padding: .85rem 1.2rem; font-weight: 700; font-size: .9rem; display: flex; align-items: center; gap: .6rem; }
.case-detail-body { padding: 1.2rem; font-size: .92rem; line-height: 1.7; color: var(--text); }
.diff-item { display: flex; align-items: center; gap: .5rem; padding: .4rem 0; border-bottom: 1px solid var(--border); }
.diff-item:last-child { border-bottom: none; }
.diff-number { width: 24px; height: 24px; background: var(--primary-light); color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; flex-shrink: 0; }

/* --- NETWORK --- */
.network-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; text-align: center; transition: all var(--transition); }
.network-card:hover { box-shadow: var(--shadow); border-color: var(--primary); }
.network-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin: 0 auto .75rem; border: 3px solid var(--primary-light); }
.network-name { font-weight: 700; font-size: .95rem; color: var(--secondary); }
.network-role { font-size: .78rem; color: var(--text-muted); }
.network-inst { font-size: .78rem; color: var(--text-muted); }

/* --- PROFILE --- */
.profile-cover { background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%); height: 180px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.profile-avatar-wrap { position: relative; margin-top: -50px; margin-left: 2rem; }
.profile-avatar { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: var(--shadow); }
