/* ============================================================
   CoreTech Innovation — Career Portal Styles
   ============================================================ */

:root {
    --cti-dark:    #0f1340;
    --cti-primary: #1a1f5e;
    --cti-accent:  #2d3a9e;
    --cti-light:   #e8ecff;
    --cti-gold:    #f0a500;
    --radius:      12px;
    --shadow:      0 4px 24px rgba(0,0,0,.08);
    --shadow-lg:   0 8px 40px rgba(0,0,0,.13);
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: #f4f6fb;
    color: #1e2545;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fs-tiny { font-size: 11px; }

/* ── Navbar ── */
.cti-navbar {
    background: linear-gradient(135deg, var(--cti-dark), var(--cti-accent));
    box-shadow: 0 2px 20px rgba(0,0,0,.2);
    padding: 0.6rem 0;
}
.cti-navbar .nav-link {
    color: rgba(255,255,255,.8) !important;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem !important;
    border-radius: 8px;
    transition: all .2s;
}
.cti-navbar .nav-link:hover, .cti-navbar .nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,.12);
}
.brand-icon {
    width: 36px; height: 36px;
    background: rgba(255,255,255,.15);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    color: #fff;
}
.avatar-mini {
    width: 28px; height: 28px;
    background: rgba(255,255,255,.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; color: #fff;
}
.btn-cti-sm {
    background: var(--cti-gold);
    color: var(--cti-dark);
    font-weight: 600;
    padding: 0.4rem 1.1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all .2s;
    text-decoration: none;
    display: inline-block;
}
.btn-cti-sm:hover { background: #e09400; color: var(--cti-dark); transform: translateY(-1px); }

/* ── Cards ── */
.cti-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,.05);
    transition: box-shadow .2s, transform .2s;
}
.cti-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

/* ── Position Cards ── */
.position-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid rgba(26,31,94,.08);
    padding: 1.5rem;
    transition: all .25s;
    height: 100%;
    display: flex; flex-direction: column;
}
.position-card:hover {
    border-color: var(--cti-accent);
    box-shadow: 0 8px 32px rgba(45,58,158,.15);
    transform: translateY(-3px);
}
.position-card-icon {
    width: 48px; height: 48px;
    background: var(--cti-light);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ── Status Badges ── */
.badge { font-size: 0.78rem; }

/* ── Auth Pages ── */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--cti-dark) 0%, var(--cti-accent) 100%);
    display: flex; align-items: center; justify-content: center;
    padding: 2rem 1rem;
}
.auth-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    padding: 2.5rem;
    width: 100%;
    max-width: 480px;
}
.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}
.auth-logo .logo-icon {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, var(--cti-primary), var(--cti-accent));
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: #fff;
    margin: 0 auto 1rem;
}

/* ── Form Controls ── */
.form-control, .form-select {
    border-radius: 8px;
    border: 1.5px solid #d8ddf0;
    font-size: 0.9rem;
    padding: 0.6rem 0.9rem;
    transition: all .2s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--cti-accent);
    box-shadow: 0 0 0 3px rgba(45,58,158,.12);
}
.form-label { font-weight: 500; font-size: 0.875rem; color: #3a4060; }

/* ── Buttons ── */
.btn-cti {
    background: linear-gradient(135deg, var(--cti-primary), var(--cti-accent));
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    transition: all .2s;
}
.btn-cti:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(45,58,158,.3); color: #fff; }
.btn-cti:active { transform: none; }

/* ── Dashboard ── */
.stats-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex; align-items: center; gap: 1.2rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,.04);
}
.stats-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
}
.stats-icon.blue   { background: #e8ecff; color: var(--cti-accent); }
.stats-icon.green  { background: #e6f9ee; color: #16a34a; }
.stats-icon.orange { background: #fff3e0; color: #e07b00; }
.stats-icon.red    { background: #fff0f0; color: #dc2626; }

/* ── Profile Hero ── */
.profile-hero {
    background: linear-gradient(135deg, var(--cti-primary), var(--cti-accent));
    border-radius: var(--radius);
    padding: 2rem;
    color: #fff;
    margin-bottom: 1.5rem;
}
.profile-pic-wrap {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: #fff;
    border: 3px solid rgba(255,255,255,.4);
    overflow: hidden;
    flex-shrink: 0;
}
.profile-pic-wrap img { width: 100%; height: 100%; object-fit: cover; }

/* ── Section Heading ── */
.section-heading {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--cti-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--cti-light);
}

/* ── Application Status Table ── */
.app-status-row { transition: background .15s; }
.app-status-row:hover { background: rgba(26,31,94,.03); }

/* ── Step Indicator ── */
.step-indicator { display: flex; align-items: center; gap: 0; margin-bottom: 2rem; }
.step-item { flex: 1; text-align: center; position: relative; }
.step-circle {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #e0e3f0;
    color: #888;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.85rem;
    margin: 0 auto 4px;
    position: relative; z-index: 1;
}
.step-circle.active { background: var(--cti-accent); color: #fff; }
.step-circle.done   { background: #16a34a; color: #fff; }
.step-label { font-size: 11px; color: #888; }
.step-line {
    position: absolute; top: 18px; left: calc(50% + 18px);
    width: calc(100% - 36px); height: 2px;
    background: #e0e3f0;
    z-index: 0;
}

/* ── Admin Layout ── */
.admin-body { background: #f0f2f8; }
.admin-wrapper { min-height: 100vh; }

.admin-sidebar {
    width: 260px;
    min-height: 100vh;
    background: linear-gradient(180deg, var(--cti-dark), var(--cti-primary));
    flex-shrink: 0;
    position: fixed;
    top: 0; left: 0;
    z-index: 1000;
    overflow-y: auto;
    transition: transform .3s;
}
.sidebar-brand {
    padding: 1.5rem 1.25rem;
    display: flex; align-items: center; gap: 0.8rem;
}
.brand-icon-lg {
    width: 44px; height: 44px;
    background: rgba(255,255,255,.15);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: #fff;
    flex-shrink: 0;
}
.sidebar-divider { border-color: rgba(255,255,255,.1); margin: 0 1rem; }
.sidebar-nav { padding: 0 0.75rem; gap: 2px; }
.sidebar-nav .nav-link {
    color: rgba(255,255,255,.7);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    display: flex; align-items: center; gap: 0.65rem;
    transition: all .2s;
}
.sidebar-nav .nav-link:hover { color: #fff; background: rgba(255,255,255,.1); }
.sidebar-nav .nav-link.active { color: #fff; background: rgba(255,255,255,.18); }
.sidebar-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,.35);
    text-transform: uppercase;
    padding: 0.9rem 1rem 0.3rem;
}

.admin-content {
    margin-left: 260px;
    min-height: 100vh;
    display: flex; flex-direction: column;
}
.admin-topbar {
    background: #fff;
    border-bottom: 1px solid #e8ebf5;
    box-shadow: 0 1px 8px rgba(0,0,0,.04);
    position: sticky; top: 0; z-index: 100;
}

/* ── Question Builder ── */
.question-item {
    background: #f8f9fe;
    border: 1.5px solid #e0e4f5;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
}
.question-item .drag-handle { cursor: grab; color: #aab; }

/* ── Responsive ── */
@media (max-width: 991.98px) {
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.show { transform: translateX(0); }
    .admin-content { margin-left: 0; }
}

/* ── Footer ── */
.cti-footer {
    background: linear-gradient(135deg, var(--cti-dark), var(--cti-primary));
    margin-top: auto;
}

/* ── Utility ── */
.text-cti { color: var(--cti-accent); }
.bg-cti   { background: var(--cti-accent); }
.rounded-12 { border-radius: 12px; }
.cursor-pointer { cursor: pointer; }
