/* =============================================
   ADMISSION DIRECT - Main Stylesheet
   Font: Outfit (display) + DM Sans (body)
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

:root {
  --primary: #1a3c6e;
  --primary-dark: #112a4f;
  --primary-light: #2352a0;
  --accent: #2563eb;
  --accent-light: #3b82f6;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #06b6d4;
  --purple: #8b5cf6;
  --orange: #f97316;
  
  --sidebar-width: 260px;
  --sidebar-bg: #0f2544;
  --sidebar-text: rgba(255,255,255,0.75);
  --sidebar-active: rgba(255,255,255,0.12);
  --sidebar-hover: rgba(255,255,255,0.07);
  
  --bg-main: #f0f4f8;
  --bg-card: #ffffff;
  --bg-input: #f8fafc;
  --border: #e2e8f0;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 16px rgba(15,23,42,0.08);
  --shadow-lg: 0 10px 40px rgba(15,23,42,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  
  --font-display: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

*{box-sizing:border-box;margin:0;padding:0}
html{font-size:14px}
body{font-family:var(--font-body);background:var(--bg-main);color:var(--text-primary);min-height:100vh;overflow-x:hidden}

/* SIDEBAR */
.sidebar{position:fixed;top:0;left:0;width:var(--sidebar-width);height:100vh;background:var(--sidebar-bg);display:flex;flex-direction:column;z-index:1040;overflow-y:auto;overflow-x:hidden;transition:transform 0.3s cubic-bezier(0.4,0,0.2,1)}
.sidebar::-webkit-scrollbar{width:4px}
.sidebar::-webkit-scrollbar-thumb{background:rgba(255,255,255,0.1);border-radius:4px}
.sidebar-brand{padding:24px 20px 20px;border-bottom:1px solid rgba(255,255,255,0.07);display:flex;align-items:center;gap:12px;text-decoration:none;flex-shrink:0}
.brand-icon{width:40px;height:40px;background:var(--accent);border-radius:10px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.brand-icon svg{width:22px;height:22px;fill:white}
.brand-text h1{font-family:var(--font-display);font-size:15px;font-weight:700;color:#fff;letter-spacing:-0.3px;line-height:1}
.brand-text span{font-size:11px;color:var(--sidebar-text);font-weight:400}
.sidebar-agency{margin:16px 12px;padding:12px;background:rgba(255,255,255,0.06);border-radius:var(--radius-sm);display:flex;align-items:center;gap:10px}
.agency-avatar{width:36px;height:36px;background:var(--accent);border-radius:8px;display:flex;align-items:center;justify-content:center;font-family:var(--font-display);font-weight:700;font-size:14px;color:white;flex-shrink:0}
.agency-info h3{font-size:12.5px;font-weight:600;color:white;line-height:1.2}
.agency-info span{font-size:11px;color:var(--sidebar-text)}
.sidebar-section{padding:16px 12px 4px}
.sidebar-section-label{font-size:10px;font-weight:600;letter-spacing:1px;text-transform:uppercase;color:rgba(255,255,255,0.35);padding:0 8px;margin-bottom:4px}
.nav-item{list-style:none}
.nav-link-custom{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:8px;color:var(--sidebar-text);text-decoration:none;font-size:13.5px;font-weight:500;transition:all 0.15s;position:relative}
.nav-link-custom:hover{background:var(--sidebar-hover);color:rgba(255,255,255,0.9)}
.nav-link-custom.active{background:var(--sidebar-active);color:white}
.nav-link-custom.active::before{content:'';position:absolute;left:0;top:50%;transform:translateY(-50%);width:3px;height:20px;background:var(--accent-light);border-radius:0 3px 3px 0}
.nav-link-custom .nav-icon{width:20px;height:20px;opacity:0.8;flex-shrink:0}
.nav-link-custom.active .nav-icon{opacity:1}
.nav-badge{margin-left:auto;background:var(--accent);color:white;font-size:10px;font-weight:700;padding:2px 6px;border-radius:20px;min-width:18px;text-align:center}
.sidebar-footer{margin-top:auto;padding:12px;border-top:1px solid rgba(255,255,255,0.07)}
.sidebar-user{display:flex;align-items:center;gap:10px;padding:8px;border-radius:8px}
.user-avatar-sm{width:34px;height:34px;background:var(--primary-light);border-radius:8px;display:flex;align-items:center;justify-content:center;font-family:var(--font-display);font-size:12px;font-weight:700;color:white;flex-shrink:0;overflow:hidden}
.user-avatar-sm img{width:100%;height:100%;object-fit:cover}
.user-info h4{font-size:12.5px;font-weight:600;color:white;line-height:1.2}
.user-info span{font-size:11px;color:var(--sidebar-text);text-transform:capitalize}
.sidebar-signout{display:flex;align-items:center;gap:8px;padding:7px 8px;border-radius:7px;color:rgba(255,255,255,0.5);text-decoration:none;font-size:13px;margin-top:4px;transition:all 0.15s}
.sidebar-signout:hover{color:#fc8181;background:rgba(252,129,129,0.1)}

/* MAIN LAYOUT */
.main-wrapper{margin-left:var(--sidebar-width);min-height:100vh;display:flex;flex-direction:column}
.topbar{background:white;border-bottom:1px solid var(--border);padding:0 28px;height:60px;display:flex;align-items:center;gap:16px;position:sticky;top:0;z-index:100}
.topbar-title{font-family:var(--font-display);font-size:18px;font-weight:700;color:var(--text-primary);flex:1}
.topbar-actions{display:flex;align-items:center;gap:8px}
.topbar-btn{width:36px;height:36px;border-radius:8px;border:1px solid var(--border);background:white;display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--text-secondary);transition:all 0.15s;position:relative;text-decoration:none}
.topbar-btn:hover{background:var(--bg-main);color:var(--text-primary)}
.topbar-btn .badge-dot{position:absolute;top:6px;right:6px;width:7px;height:7px;background:var(--danger);border-radius:50%;border:1.5px solid white}
.topbar-user{display:flex;align-items:center;gap:8px;padding:4px 8px;border-radius:8px;cursor:pointer;transition:background 0.15s;text-decoration:none}
.topbar-user:hover{background:var(--bg-main)}
.topbar-user-avatar{width:32px;height:32px;background:var(--primary);border-radius:8px;display:flex;align-items:center;justify-content:center;font-family:var(--font-display);font-size:12px;font-weight:700;color:white;overflow:hidden;flex-shrink:0}
.topbar-user-avatar img{width:100%;height:100%;object-fit:cover}
.topbar-user-name{font-size:13px;font-weight:600;color:var(--text-primary);line-height:1.2}
.topbar-user-role{font-size:11px;color:var(--text-muted);text-transform:capitalize}
.page-content{padding:28px;flex:1}

/* CARDS */
.card{background:var(--bg-card);border-radius:var(--radius);border:1px solid var(--border);box-shadow:var(--shadow-sm)}
.card-header-custom{padding:18px 20px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:12px}
.card-title-custom{font-family:var(--font-display);font-size:15px;font-weight:600;color:var(--text-primary);display:flex;align-items:center;gap:8px}
.card-body-custom{padding:20px}

/* STAT CARDS */
.stat-card{background:white;border-radius:var(--radius);border:1px solid var(--border);padding:20px;transition:all 0.2s;box-shadow:var(--shadow-sm)}
.stat-card:hover{box-shadow:var(--shadow);transform:translateY(-1px)}
.stat-icon{width:48px;height:48px;border-radius:12px;display:flex;align-items:center;justify-content:center;margin-bottom:14px}
.stat-icon svg{width:24px;height:24px}
.stat-value{font-family:var(--font-display);font-size:30px;font-weight:700;line-height:1;margin-bottom:4px}
.stat-label{font-size:13px;color:var(--text-secondary);font-weight:400}
.stat-card.blue .stat-icon{background:#eff6ff} .stat-card.blue .stat-value{color:var(--accent)}
.stat-card.orange .stat-icon{background:#fff7ed} .stat-card.orange .stat-value{color:var(--orange)}
.stat-card.green .stat-icon{background:#f0fdf4} .stat-card.green .stat-value{color:var(--success)}
.stat-card.purple .stat-icon{background:#f5f3ff} .stat-card.purple .stat-value{color:var(--purple)}
.stat-card.red .stat-icon{background:#fef2f2} .stat-card.red .stat-value{color:var(--danger)}
.stat-card.gray .stat-icon{background:#f8fafc} .stat-card.gray .stat-value{color:var(--text-secondary)}
.stat-card.cyan .stat-icon{background:#ecfeff} .stat-card.cyan .stat-value{color:var(--info)}
.stat-card.amber .stat-icon{background:#fffbeb} .stat-card.amber .stat-value{color:var(--warning)}

/* STATUS BADGES */
.badge-status{display:inline-flex;align-items:center;gap:5px;padding:4px 10px;border-radius:20px;font-size:11.5px;font-weight:600;letter-spacing:0.2px}
.badge-status::before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor}
.badge-lead{background:#f1f5f9;color:#475569} .badge-prospect{background:#eff6ff;color:#2563eb}
.badge-applied{background:#f0f9ff;color:#0284c7} .badge-pending{background:#fffbeb;color:#d97706}
.badge-enrolled{background:#f0fdf4;color:#16a34a} .badge-deferred{background:#f5f3ff;color:#7c3aed}
.badge-rejected{background:#fef2f2;color:#dc2626} .badge-completed{background:#f0fdf4;color:#15803d}
.badge-cancelled{background:#f1f5f9;color:#6b7280} .badge-active{background:#ecfdf5;color:#059669}
.badge-trial{background:#fffbeb;color:#b45309} .badge-expired{background:#fef2f2;color:#dc2626}
.badge-suspended{background:#fef9c3;color:#92400e}

/* TABLES */
.table-custom{width:100%;border-collapse:collapse}
.table-custom thead th{padding:10px 14px;font-size:11px;font-weight:600;letter-spacing:0.5px;text-transform:uppercase;color:var(--text-muted);background:var(--bg-main);border-bottom:1px solid var(--border);white-space:nowrap}
.table-custom tbody td{padding:13px 14px;font-size:13.5px;border-bottom:1px solid #f1f5f9;color:var(--text-primary);vertical-align:middle}
.table-custom tbody tr:hover{background:#f8fafc}
.table-custom tbody tr:last-child td{border-bottom:none}

/* STUDENT AVATAR */
.student-avatar{width:38px;height:38px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-family:var(--font-display);font-size:13px;font-weight:700;color:white;flex-shrink:0}

/* FORMS */
.form-label-custom{font-size:12.5px;font-weight:600;color:var(--text-secondary);margin-bottom:6px;display:block}
.form-control-custom{width:100%;padding:9px 12px;border:1.5px solid var(--border);border-radius:8px;background:var(--bg-input);font-family:var(--font-body);font-size:13.5px;color:var(--text-primary);transition:all 0.15s;outline:none}
.form-control-custom:focus{border-color:var(--accent);background:white;box-shadow:0 0 0 3px rgba(37,99,235,0.1)}
select.form-control-custom{cursor:pointer}

/* BUTTONS */
.btn-primary-custom{display:inline-flex;align-items:center;gap:6px;padding:9px 18px;background:var(--accent);color:white;border:none;border-radius:8px;font-size:13.5px;font-weight:600;cursor:pointer;transition:all 0.15s;text-decoration:none;font-family:var(--font-body)}
.btn-primary-custom:hover{background:var(--primary-light);color:white;transform:translateY(-1px);box-shadow:0 4px 12px rgba(37,99,235,0.35)}
.btn-secondary-custom{display:inline-flex;align-items:center;gap:6px;padding:8px 16px;background:white;color:var(--text-primary);border:1.5px solid var(--border);border-radius:8px;font-size:13.5px;font-weight:500;cursor:pointer;transition:all 0.15s;text-decoration:none;font-family:var(--font-body)}
.btn-secondary-custom:hover{background:var(--bg-main);border-color:#cbd5e1;color:var(--text-primary)}
.btn-danger-custom{display:inline-flex;align-items:center;gap:6px;padding:8px 16px;background:#fef2f2;color:var(--danger);border:1.5px solid #fecaca;border-radius:8px;font-size:13px;font-weight:600;cursor:pointer;transition:all 0.15s;text-decoration:none;font-family:var(--font-body)}
.btn-danger-custom:hover{background:var(--danger);color:white}
.btn-icon{width:32px;height:32px;border-radius:7px;border:1px solid var(--border);background:white;display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--text-secondary);transition:all 0.15s;text-decoration:none}
.btn-icon:hover{background:var(--bg-main);color:var(--text-primary)}
.btn-icon svg{width:15px;height:15px}

/* PAGE HEADER */
.page-header{margin-bottom:24px}
.page-header-title{font-family:var(--font-display);font-size:22px;font-weight:700;color:var(--text-primary);margin-bottom:2px}
.page-header-subtitle{font-size:13.5px;color:var(--text-secondary)}

/* SEARCH */
.search-box{position:relative;flex:1;max-width:320px}
.search-box input{width:100%;padding:8px 12px 8px 36px;border:1.5px solid var(--border);border-radius:8px;background:var(--bg-input);font-size:13px;outline:none;transition:all 0.15s}
.search-box input:focus{border-color:var(--accent);background:white;box-shadow:0 0 0 3px rgba(37,99,235,0.1)}
.search-box .search-icon{position:absolute;left:10px;top:50%;transform:translateY(-50%);color:var(--text-muted);width:16px;height:16px}

/* TABS */
.tabs-custom{display:flex;gap:2px;background:var(--bg-main);border-radius:10px;padding:4px}
.tab-btn{padding:7px 14px;border-radius:7px;border:none;background:transparent;font-size:12.5px;font-weight:500;color:var(--text-secondary);cursor:pointer;transition:all 0.15s;white-space:nowrap;display:flex;align-items:center;gap:5px}
.tab-btn.active{background:white;color:var(--primary);font-weight:600;box-shadow:var(--shadow-sm)}
.tab-count{background:var(--bg-main);border-radius:10px;padding:1px 6px;font-size:10.5px;font-weight:700}
.tab-btn.active .tab-count{background:var(--accent);color:white}

/* ACTIVITY */
.activity-item{display:flex;gap:12px;padding:12px 0;border-bottom:1px solid #f1f5f9}
.activity-item:last-child{border-bottom:none}
.activity-dot{width:32px;height:32px;border-radius:8px;flex-shrink:0;display:flex;align-items:center;justify-content:center}
.activity-dot svg{width:15px;height:15px}
.activity-text{flex:1;min-width:0}
.activity-text strong{font-size:13px;font-weight:600;color:var(--text-primary)}
.activity-text p{font-size:12.5px;color:var(--text-secondary);margin:2px 0 0}
.activity-time{font-size:11.5px;color:var(--text-muted);white-space:nowrap}

/* TASK */
.task-item{display:flex;align-items:flex-start;gap:10px;padding:10px 0;border-bottom:1px solid #f1f5f9}
.task-item:last-child{border-bottom:none}
.task-check{width:18px;height:18px;border-radius:5px;border:2px solid var(--border);flex-shrink:0;margin-top:2px;cursor:pointer;transition:all 0.15s}
.task-check:hover{border-color:var(--accent)}
.task-content{flex:1;min-width:0}
.task-title{font-size:13px;font-weight:500;color:var(--text-primary)}
.task-meta{font-size:11.5px;color:var(--text-muted);margin-top:2px}
.priority-urgent{color:var(--danger)} .priority-high{color:var(--orange)} .priority-medium{color:var(--warning)} .priority-low{color:var(--success)}

/* DESTINATION */
.dest-item{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid #f1f5f9}
.dest-item:last-child{border-bottom:none}
.dest-bar-wrap{flex:1;margin:0 12px}
.dest-bar{height:6px;background:#e2e8f0;border-radius:3px;overflow:hidden}
.dest-bar-fill{height:100%;background:var(--accent);border-radius:3px;transition:width 0.6s ease}

/* ALERTS */
.alert-custom{padding:12px 16px;border-radius:8px;display:flex;align-items:flex-start;gap:10px;font-size:13.5px;margin-bottom:16px}
.alert-success{background:#f0fdf4;border:1px solid #86efac;color:#15803d}
.alert-error{background:#fef2f2;border:1px solid #fca5a5;color:#dc2626}
.alert-warning{background:#fffbeb;border:1px solid #fcd34d;color:#d97706}
.alert-info{background:#eff6ff;border:1px solid #93c5fd;color:#1d4ed8}

/* EMPTY STATE */
.empty-state{text-align:center;padding:60px 20px}
.empty-state-icon{width:64px;height:64px;background:var(--bg-main);border-radius:16px;display:flex;align-items:center;justify-content:center;margin:0 auto 16px}
.empty-state h3{font-family:var(--font-display);font-size:16px;font-weight:600;color:var(--text-primary);margin-bottom:6px}
.empty-state p{font-size:13.5px;color:var(--text-secondary)}

/* MODAL */
.modal-custom .modal-content{border:none;border-radius:var(--radius-lg);box-shadow:var(--shadow-lg)}
.modal-custom .modal-header{padding:18px 22px;border-bottom:1px solid var(--border)}
.modal-custom .modal-title{font-family:var(--font-display);font-size:16px;font-weight:700}
.modal-custom .modal-body{padding:22px}
.modal-custom .modal-footer{padding:14px 22px;border-top:1px solid var(--border)}

/* DETAIL TABS */
.detail-tabs .nav-link{color:var(--text-secondary);font-size:13.5px;font-weight:500;padding:10px 16px;border-bottom:2px solid transparent;border-radius:0}
.detail-tabs .nav-link.active{color:var(--accent);border-bottom-color:var(--accent);font-weight:600}
.detail-tabs .nav-link:hover{color:var(--text-primary)}

/* PLAN CARDS */
.plan-card{border-radius:var(--radius-lg);border:2px solid var(--border);padding:28px;text-align:center;transition:all 0.2s;background:white;position:relative;overflow:hidden}
.plan-card:hover{box-shadow:var(--shadow-lg);transform:translateY(-2px)}
.plan-card.popular{border-color:var(--accent)}
.plan-card.popular::before{content:'Most Popular';position:absolute;top:16px;right:-28px;background:var(--accent);color:white;font-size:10px;font-weight:700;padding:4px 36px;transform:rotate(45deg);letter-spacing:0.5px}
.plan-price{font-family:var(--font-display);font-size:40px;font-weight:800;line-height:1;color:var(--primary)}
.plan-price sup{font-size:18px;font-weight:600;vertical-align:super}
.plan-price sub{font-size:14px;font-weight:400;color:var(--text-secondary)}

/* RESPONSIVE */
@media(max-width:991px){
  .sidebar{transform:translateX(-100%)}
  .sidebar.show{transform:translateX(0)}
  .main-wrapper{margin-left:0}
  .page-content{padding:16px}
}
.sidebar-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,0.5);z-index:1039}
.sidebar-overlay.show{display:block}

/* UTILS */
.fw-600{font-weight:600} .font-display{font-family:var(--font-display)}
@keyframes fadeInUp{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
.fade-in-up{animation:fadeInUp 0.3s ease forwards}
@keyframes spin{to{transform:rotate(360deg)}}
.spinner{animation:spin 0.8s linear infinite}

/* LOGIN PAGE */
.login-page{min-height:100vh;background:linear-gradient(135deg, #0f2544 0%, #1a3c6e 50%, #2563eb 100%);display:flex;align-items:center;justify-content:center;padding:20px}
.login-card{background:white;border-radius:20px;padding:44px;width:100%;max-width:420px;box-shadow:0 24px 60px rgba(0,0,0,0.25)}
.login-brand{text-align:center;margin-bottom:32px}
.login-brand-icon{width:56px;height:56px;background:var(--accent);border-radius:14px;display:flex;align-items:center;justify-content:center;margin:0 auto 12px}
.login-brand-icon svg{width:28px;height:28px;fill:white}
.login-brand h1{font-family:var(--font-display);font-size:20px;font-weight:800;color:var(--primary)}
.login-brand p{font-size:12.5px;color:var(--text-muted);margin-top:2px}
.login-form h2{font-family:var(--font-display);font-size:16px;font-weight:700;color:var(--text-primary);margin-bottom:20px}
