/* ── UniApply Custom Styles ────────────────────────────────────────────────── */

:root {
    --primary: #1a3a5c;
    --primary-light: #2c5f8a;
    --primary-lighter: #3d7ab5;
    --accent: #0d6efd;
    --accent-light: #4d94ff;
    --gradient-start: #1a3a5c;
    --gradient-end: #2c5f8a;
    --bg-light: #f8f9fc;
    --card-shadow: 0 2px 12px rgba(0,0,0,0.08);
    --card-shadow-hover: 0 6px 24px rgba(0,0,0,0.12);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* ── Navbar ─────────────────────────────────────────────────────────────────── */

.navbar {
    background: white;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
    padding: 0.6rem 0;
}

.navbar-brand {
    color: var(--primary) !important;
    font-size: 1.3rem;
}

.navbar .nav-link {
    color: #555;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0.8rem;
    transition: color 0.2s;
}

.navbar .nav-link:hover {
    color: var(--primary);
}

/* ── Hero Section ──────────────────────────────────────────────────────────── */

.hero-section {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: rgba(255,255,255,0.03);
    transform: rotate(15deg);
    border-radius: 50%;
}

.hero-section h1 {
    font-weight: 700;
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.hero-section .lead {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 600px;
}

/* ── Cards ──────────────────────────────────────────────────────────────────── */

.card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: box-shadow 0.3s, transform 0.3s;
}

.card:hover {
    box-shadow: var(--card-shadow-hover);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

/* ── Stats Cards ───────────────────────────────────────────────────────────── */

.stat-card {
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    background: white;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
}

.stat-card .stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: #777;
    font-weight: 500;
}

/* ── Dashboard Sidebar ─────────────────────────────────────────────────────── */

.sidebar {
    background: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    padding: 1rem 0;
    position: sticky;
    top: 80px;
}

.sidebar .nav-link {
    color: #555;
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: var(--primary);
    background: rgba(26, 58, 92, 0.04);
    border-left-color: var(--primary);
}

.sidebar .nav-link i {
    width: 22px;
    text-align: center;
    margin-right: 8px;
}

.sidebar .sidebar-heading {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #aaa;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.5rem 1.5rem;
    margin-top: 0.5rem;
}

/* ── Programme Cards ───────────────────────────────────────────────────────── */

.programme-card {
    border-left: 4px solid var(--primary-light);
    transition: transform 0.2s, box-shadow 0.2s;
}

.programme-card:hover {
    transform: translateY(-3px);
}

.programme-card .institution-badge {
    font-size: 0.75rem;
    background: rgba(26, 58, 92, 0.08);
    color: var(--primary);
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
}

/* ── Feature Section ───────────────────────────────────────────────────────── */

.feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    background: white;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-card .feature-icon {
    font-size: 2.5rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.feature-card h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: #777;
    font-size: 0.9rem;
}

/* ── Tables ─────────────────────────────────────────────────────────────────── */

.table {
    font-size: 0.9rem;
}

.table th {
    font-weight: 600;
    color: #555;
    border-bottom-width: 1px;
}

/* ── Forms ──────────────────────────────────────────────────────────────────── */

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.2rem rgba(26, 58, 92, 0.15);
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* ── Badges ─────────────────────────────────────────────────────────────────── */

.badge {
    font-weight: 500;
    padding: 0.4em 0.7em;
    border-radius: 6px;
}

/* ── Footer ─────────────────────────────────────────────────────────────────── */

.footer {
    background: white;
    border-top: 1px solid #eee;
    margin-top: 3rem;
}

/* ── Page Header ───────────────────────────────────────────────────────────── */

.page-header {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
    padding: 2.5rem 0;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
}

.page-header p {
    opacity: 0.85;
    margin-bottom: 0;
}

/* ── Auth Pages ─────────────────────────────────────────────────────────────── */

.auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 72px);
    padding: 2rem;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* ── Notification Badge ────────────────────────────────────────────────────── */

.notification-item {
    border-left: 3px solid var(--primary-light);
    margin-bottom: 0.5rem;
    padding: 0.8rem 1rem;
    background: white;
    border-radius: 0 8px 8px 0;
    box-shadow: var(--card-shadow);
    transition: background 0.2s;
}

.notification-item.unread {
    background: rgba(13, 110, 253, 0.03);
    border-left-color: var(--accent);
}

/* ── Empty State ───────────────────────────────────────────────────────────── */

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #999;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ccc;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }
    .hero-section h1 {
        font-size: 2rem;
    }
    .sidebar {
        position: static;
        margin-bottom: 1.5rem;
    }
    .stat-card {
        margin-bottom: 1rem;
    }
}
