@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --navy:   #F0FAF4;
    --navy2:  #FFFFFF;
    --navy3:  #E8F5EE;
    --border: #B2DFCC;
    --blue:   #1A8A4A;
    --blue2:  #158A40;
    --text:   #1A3A2A;
    --muted:  #2E7D52;
    --dim:    #4A9A6A;
    --faint:  #6AB88A;
    --green:  #1A8A4A;
    --red:    #CC3333;
    --yellow: #B8860B;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: linear-gradient(135deg, #E8F5EE 0%, #FFFFFF 50%, #F0FAF4 100%);
    background-attachment: fixed;
    color: var(--text);
    min-height: 100vh;
    font-size: 14px;
    line-height: 1.6;
}

/* ---- NAV ---- */
.navbar {
    background: #FFFFFF;
    border-bottom: 2px solid #B2DFCC;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(26,138,74,0.08);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon { width: 34px; height: 34px; border-radius: 8px; background: linear-gradient(135deg, #1A8A4A, #0F5C32); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: #fff; }
.logo-name  { font-weight: 700; font-size: 15px; color: #1A3A2A; }
.logo-sub   { font-size: 10px; color: #4A9A6A; margin-top: -2px; }
.nav-links  { display: flex; gap: 8px; align-items: center; }
.nav-btn {
    padding: 6px 14px; border-radius: 6px; font-size: 12px; font-weight: 500;
    cursor: pointer; border: 1px solid #B2DFCC; background: transparent;
    color: #2E7D52; text-decoration: none; display: inline-block;
    transition: all .15s;
}
.nav-btn:hover  { border-color: #1A8A4A; background: #E8F5EE; color: #1A8A4A; }
.nav-btn.active { border-color: #1A8A4A; background: #D4EDDA; color: #1A5C30; font-weight: 600; }
.nav-btn.danger { border-color: #FFCCCC; background: #FFF0F0; color: #CC3333; }
.nav-btn.danger:hover { background: #FFE0E0; }
.nav-user { font-size: 12px; color: #2E7D52; margin-right: 4px; font-weight: 500; }

/* ---- LAYOUT ---- */
.container     { max-width: 900px; margin: 0 auto; padding: 24px 16px; }
.container-sm  { max-width: 520px; margin: 0 auto; padding: 24px 16px; }
.container-xs  { max-width: 420px; margin: 0 auto; padding: 24px 16px; }

/* ---- HERO ---- */
.hero { text-align: center; padding: 56px 20px 36px; }
.intake-badge {
    display: inline-block;
    background: linear-gradient(135deg, #D4EDDA, #E8F5EE);
    border: 1px solid #1A8A4A;
    border-radius: 20px; padding: 5px 18px; font-size: 11px;
    color: #1A5C30; margin-bottom: 18px; letter-spacing: .05em;
    font-weight: 600;
}
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; line-height: 1.2; margin-bottom: 14px; color: #1A3A2A; }
.hero h1 span { color: #1A8A4A; }
.hero p  { font-size: 15px; color: #3A6A52; max-width: 500px; margin: 0 auto 28px; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
    padding: 12px 28px; background: linear-gradient(135deg, #1A8A4A, #0F5C32);
    border: none; border-radius: 8px; color: #fff; font-weight: 600; font-size: 14px;
    cursor: pointer; text-decoration: none; display: inline-block; transition: opacity .15s;
    box-shadow: 0 2px 8px rgba(26,138,74,0.25);
}
.btn-primary:hover { opacity: .88; }
.btn-outline {
    padding: 12px 28px; background: #FFFFFF; border: 1.5px solid #1A8A4A;
    border-radius: 8px; color: #1A8A4A; font-weight: 600; font-size: 14px;
    cursor: pointer; text-decoration: none; display: inline-block; transition: all .15s;
}
.btn-outline:hover { background: #E8F5EE; }
.btn-full { width: 100%; text-align: center; }
.btn-sm { padding: 8px 16px; font-size: 12px; }
.btn-danger  { background: #FFF0F0; border: 1px solid #FFAAAA; color: #CC3333; cursor: pointer; border-radius: 7px; padding: 11px; font-weight: 600; font-family: inherit; }
.btn-success { background: #E8F5EE; border: 1px solid #1A8A4A; color: #1A5C30; cursor: pointer; border-radius: 7px; padding: 11px; font-weight: 600; font-family: inherit; }

/* ---- CARDS ---- */
.card {
    background: #FFFFFF;
    border: 1px solid #B2DFCC;
    border-radius: 12px; padding: 24px;
    box-shadow: 0 2px 12px rgba(26,138,74,0.06);
}
.card + .card { margin-top: 14px; }

/* ---- FORMS ---- */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 12px; font-weight: 500; color: #2E7D52; margin-bottom: 6px; }
.form-label .req { color: #CC3333; margin-left: 2px; }
.form-control {
    width: 100%; padding: 10px 13px; background: #F7FDF9;
    border: 1.5px solid #B2DFCC; border-radius: 7px; color: #1A3A2A;
    font-size: 13px; outline: none; font-family: inherit; transition: border-color .15s;
}
.form-control:focus { border-color: #1A8A4A; background: #FFFFFF; box-shadow: 0 0 0 3px rgba(26,138,74,0.1); }
select.form-control option { background: #FFFFFF; color: #1A3A2A; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-hint  { font-size: 11px; color: #4A9A6A; margin-top: 4px; }
.form-error { font-size: 11px; color: #CC3333; margin-top: 4px; }

/* ---- FILE UPLOAD ---- */
.upload-box {
    border: 2px dashed #B2DFCC; border-radius: 8px; padding: 18px;
    text-align: center; cursor: pointer; background: #F7FDF9;
    transition: all .15s; position: relative;
}
.upload-box:hover { border-color: #1A8A4A; background: #E8F5EE; }
.upload-box.uploaded { border-style: solid; border-color: #1A8A4A; background: #E8F5EE; }
.upload-box input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.upload-icon  { font-size: 24px; margin-bottom: 6px; }
.upload-label { font-size: 13px; color: #2E7D52; }
.upload-hint  { font-size: 11px; color: #6AB88A; margin-top: 3px; }
.upload-name  { font-size: 13px; color: #1A8A4A; font-weight: 500; }
.upload-size  { font-size: 11px; color: #4A9A6A; margin-top: 2px; }

/* ---- STEP PROGRESS ---- */
.step-header { margin-bottom: 24px; }
.step-label  { font-size: 10px; color: #6AB88A; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; }
.step-title  { font-size: 20px; font-weight: 700; margin-bottom: 12px; color: #1A3A2A; }
.step-bar    { display: flex; gap: 5px; }
.step-bar span { height: 4px; border-radius: 2px; flex: 1; background: #D4EDDA; }
.step-bar span.done { background: #1A8A4A; }

/* ---- ALERTS ---- */
.alert         { padding: 12px 16px; border-radius: 8px; font-size: 13px; margin-bottom: 18px; }
.alert-success { background: #D4EDDA; border: 1px solid #1A8A4A; color: #1A5C30; }
.alert-error   { background: #FFE0E0; border: 1px solid #FFAAAA; color: #CC3333; }
.alert-info    { background: #E8F5EE; border: 1px solid #B2DFCC; color: #2E7D52; }

/* ---- BADGES ---- */
.badge          { display: inline-block; padding: 4px 12px; border-radius: 16px; font-size: 11px; font-weight: 600; }
.badge-pending  { background: #FFF3CD; color: #856404; }
.badge-approved { background: #D4EDDA; color: #1A5C30; }
.badge-rejected { background: #FFE0E0; color: #CC3333; }

/* ---- INFO GRID ---- */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.info-cell { background: #F7FDF9; border: 1px solid #D4EDDA; border-radius: 8px; padding: 11px 13px; }
.info-key  { font-size: 10px; color: #6AB88A; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; }
.info-val  { font-size: 13px; color: #1A3A2A; font-weight: 500; }
.span-2    { grid-column: span 2; }

/* ---- DOC PILLS ---- */
.doc-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.doc-pill  {
    background: #E8F5EE; border: 1px solid #B2DFCC; border-radius: 7px;
    padding: 9px 14px; display: flex; align-items: center; gap: 8px;
    font-size: 12px; color: #1A8A4A; text-decoration: none;
    transition: all .15s;
}
.doc-pill:hover { border-color: #1A8A4A; background: #D4EDDA; }
.doc-tick { font-size: 11px; color: #1A8A4A; margin-left: 4px; }

/* ---- STAT CARDS ---- */
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 22px; }
.stat-card  {
    background: #FFFFFF; border: 1px solid #B2DFCC; border-radius: 9px;
    padding: 14px 16px; box-shadow: 0 2px 8px rgba(26,138,74,0.06);
}
.stat-num   { font-size: 24px; font-weight: 700; }
.stat-lbl   { font-size: 11px; color: #4A9A6A; margin-top: 2px; }

/* ---- APP TABLE ---- */
.app-row {
    background: #FFFFFF; border: 1px solid #B2DFCC; border-radius: 9px;
    padding: 14px 18px; display: flex; justify-content: space-between;
    align-items: center; margin-bottom: 8px; text-decoration: none; color: inherit;
    transition: all .15s; box-shadow: 0 1px 4px rgba(26,138,74,0.05);
}
.app-row:hover { border-color: #1A8A4A; background: #F7FDF9; box-shadow: 0 4px 12px rgba(26,138,74,0.1); }
.avatar {
    width: 38px; height: 38px; border-radius: 8px;
    background: linear-gradient(135deg, #D4EDDA, #E8F5EE);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: #1A5C30; font-size: 13px; flex-shrink: 0;
    border: 1px solid #B2DFCC;
}
.app-name    { font-weight: 600; font-size: 14px; color: #1A3A2A; }
.app-sub     { font-size: 11px; color: #4A9A6A; margin-top: 2px; }
.app-meta    { display: flex; align-items: center; gap: 12px; }
.app-date    { font-size: 11px; color: #6AB88A; }
.app-chevron { color: #B2DFCC; font-size: 18px; }

/* ---- ACTION BTNS ---- */
.action-btns { display: flex; gap: 10px; margin-top: 4px; }
.action-btns button, .action-btns a {
    flex: 1; padding: 11px; border-radius: 7px; font-weight: 600; font-size: 13px;
    cursor: pointer; text-align: center; text-decoration: none; font-family: inherit;
}

/* ---- COURSES GRID ---- */
.courses-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px,1fr)); gap: 8px; margin-top: 16px; }
.course-item  {
    background: #FFFFFF; border: 1px solid #B2DFCC; border-radius: 9px;
    padding: 12px 14px; font-size: 13px; color: #1A3A2A;
    display: flex; align-items: center; gap: 10px;
    transition: all .15s; box-shadow: 0 1px 4px rgba(26,138,74,0.05);
}
.course-item:hover { border-color: #1A8A4A; background: #F7FDF9; }
.course-dot { width: 7px; height: 7px; border-radius: 50%; background: #1A8A4A; flex-shrink: 0; }

/* ---- HOW IT WORKS ---- */
.steps-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin: 28px 0 8px; }
.step-box  {
    background: #FFFFFF; border: 1px solid #B2DFCC; border-radius: 12px;
    padding: 20px 22px; max-width: 200px; text-align: center;
    box-shadow: 0 2px 8px rgba(26,138,74,0.06);
}
.step-icon { font-size: 28px; margin-bottom: 10px; }
.step-name { font-weight: 600; font-size: 13px; margin-bottom: 6px; color: #1A3A2A; }
.step-desc { font-size: 12px; color: #4A9A6A; line-height: 1.5; }

/* ---- ADMIN FILTER TABS ---- */
.filter-tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.filter-tab  {
    padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 500;
    border: 1px solid #B2DFCC; background: #FFFFFF; color: #2E7D52;
    cursor: pointer; text-decoration: none; transition: all .15s;
}
.filter-tab:hover  { border-color: #1A8A4A; background: #E8F5EE; }
.filter-tab.active { background: #D4EDDA; border-color: #1A8A4A; color: #1A5C30; font-weight: 600; }

/* ---- TEXTAREA ---- */
textarea.form-control { resize: vertical; min-height: 80px; }

/* ---- FOOTER ---- */
.footer {
    text-align: center; padding: 28px; color: #6AB88A; font-size: 12px;
    border-top: 1px solid #D4EDDA; margin-top: 40px;
    background: #FFFFFF;
}

/* ---- RESPONSIVE ---- */
@media(max-width:600px){
    .form-grid    { grid-template-columns: 1fr; }
    .info-grid    { grid-template-columns: 1fr; }
    .stats-grid   { grid-template-columns: repeat(2,1fr); }
    .span-2       { grid-column: span 1; }
    .action-btns  { flex-direction: column; }
    .app-row      { flex-direction: column; align-items: flex-start; gap: 10px; }
    .app-meta     { width: 100%; justify-content: space-between; }
}
