/*
 * warm-premium.css — Component polish for Warm Premium theme
 * Loaded after style.css on all pages via responsive.css or global header
 * Palette: Cobalt Blue #2563EB | Deep Navy #1E3A5F | Warm White #FAFAF9
 */

/* ── Hero / Welcome Banner ────────────────────────── */
.hero-banner, .welcome-card {
    background: linear-gradient(135deg, #1E3A5F 0%, #2D5282 60%, #1E3A5F 100%) !important;
    color: #fff !important;
}

/* ── tbi-card warm styling ─────────────────────────── */
.tbi-card {
    background: var(--bg-card) !important;
    border: 1px solid rgba(194, 120, 67, 0.13) !important;
    border-radius: 1.125rem !important;
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.06) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.tbi-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 28px rgba(37, 99, 235, 0.10) !important;
}

/* ── Badge / Status chips ──────────────────────────── */
.badge-approved { background: rgba(22,163,74,0.1); color: #15803D; border: 1px solid rgba(22,163,74,0.2); border-radius: 20px; padding: 3px 12px; font-size: 0.75rem; font-weight: 700; }
.badge-pending  { background: rgba(217,119,6,0.1);  color: #B45309; border: 1px solid rgba(217,119,6,0.2);  border-radius: 20px; padding: 3px 12px; font-size: 0.75rem; font-weight: 700; }
.badge-rejected { background: rgba(220,38,38,0.1);  color: #B91C1C; border: 1px solid rgba(220,38,38,0.2);  border-radius: 20px; padding: 3px 12px; font-size: 0.75rem; font-weight: 700; }

/* ── Buttons ───────────────────────────────────────── */
.btn-primary {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(37,99,235,0.28) !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
    border-radius: 10px !important;
}
.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, #1D4ED8 0%, #7C2D12 100%) !important;
    box-shadow: 0 6px 20px rgba(37,99,235,0.38) !important;
    transform: translateY(-1px) !important;
    color: #fff !important;
}
.btn-outline-primary {
    border: 2px solid #2563EB !important;
    color: #2563EB !important;
    background: transparent !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
}
.btn-outline-primary:hover {
    background: rgba(37,99,235,0.06) !important;
    color: #1D4ED8 !important;
}
.btn-outline-secondary {
    border: 2px solid rgba(30,58,95,0.3) !important;
    color: #1E3A5F !important;
    background: transparent !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
}
.btn-outline-secondary:hover {
    background: rgba(30,58,95,0.06) !important;
}

/* ── Links ─────────────────────────────────────────── */
a { color: #2563EB; }
a:hover { color: #1D4ED8; }

/* ── Progress bars ─────────────────────────────────── */
.progress-bar, .bg-primary { background-color: #2563EB !important; }
.progress { background-color: rgba(37,99,235,0.10) !important; border-radius: 100px !important; }

/* ── Form Controls ─────────────────────────────────── */
.form-control:focus, .form-select:focus {
    border-color: #2563EB !important;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12) !important;
    outline: none !important;
}
.form-control, .form-select {
    border-color: rgba(37,99,235,0.2) !important;
    background: var(--bg-card) !important;
    color: var(--text-main) !important;
    border-radius: 9px !important;
}

/* ── Tables ────────────────────────────────────────── */
.tbi-table thead th {
    background: linear-gradient(135deg, #1E3A5F 0%, #2563EB 100%) !important;
    color: #fff !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em !important;
    text-transform: uppercase !important;
    font-size: 0.72rem !important;
    border: none !important;
}
.tbi-table tbody tr:hover td {
    background: rgba(37,99,235,0.04) !important;
}
.tbi-table { border-radius: 12px !important; overflow: hidden !important; }

/* ── Alerts ────────────────────────────────────────── */
.alert-success { background: rgba(22,163,74,0.08) !important; color: #15803D !important; border: 1px solid rgba(22,163,74,0.2) !important; border-radius: 12px !important; }
.alert-danger  { background: rgba(220,38,38,0.08) !important; color: #B91C1C !important; border: 1px solid rgba(220,38,38,0.2)  !important; border-radius: 12px !important; }
.alert-warning { background: rgba(217,119,6,0.08) !important; color: #B45309 !important; border: 1px solid rgba(217,119,6,0.2)  !important; border-radius: 12px !important; }
.alert-info    { background: rgba(3,105,161,0.07)  !important; color: #0369A1 !important; border: 1px solid rgba(3,105,161,0.2) !important; border-radius: 12px !important; }

/* ── Sidebar header border (light logo area) ────────── */
.student-sidebar-header {
    border-bottom: 1px solid rgba(255,200,140,0.14) !important;
}

/* ── Stat cards in dashboards ───────────────────────── */
.stat-card, .metric-card {
    border-left: 4px solid #2563EB !important;
}

/* ── Course card accent ─────────────────────────────── */
.course-card-top, .tbi-card[style*="border-top"] {
    border-top-color: #2563EB !important;
}

/* ── Notification bell active ───────────────────────── */
.notif-badge, #notif-badge {
    background: #2563EB !important;
}

/* ── Scrollbar warm tint ────────────────────────────── */
::-webkit-scrollbar-thumb {
    background: rgba(37,99,235,0.25) !important;
    border-radius: 10px !important;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(37,99,235,0.42) !important;
}
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }

/* ── Dark mode card overrides ───────────────────────── */
body.dark-mode .tbi-card,
[data-theme="dark"] .tbi-card {
    background: rgba(40,22,12,0.80) !important;
    border-color: rgba(255,180,100,0.09) !important;
}
body.dark-mode .tbi-table thead th,
[data-theme="dark"] .tbi-table thead th {
    background: linear-gradient(135deg, #12243A 0%, #1E3A5F 100%) !important;
}

/* ── Rating stars ────────────────────────────────────── */
.star-filled, .text-warning { color: #D97706 !important; }

/* ── Sidebar footer divider ─────────────────────────── */
.student-sidebar-footer {
    border-top: 1px solid rgba(255,200,140,0.12) !important;
}

/* ── Modal warm style ───────────────────────────────── */
.modal-header {
    background: linear-gradient(135deg, #1E3A5F, #2D5282) !important;
    color: #fff !important;
    border-radius: 14px 14px 0 0 !important;
}
.modal-header .btn-close { filter: invert(1) !important; }
.modal-content { border-radius: 14px !important; border: 1px solid rgba(37,99,235,0.15) !important; }

/* ── Page Hero Banner ────────────────────────────────── */
/* Usage: <div class="page-hero"><div class="page-hero-inner">...</div></div> */
.page-hero {
    background: linear-gradient(125deg, #1E3A5F 0%, #2D5282 40%, #1E40AF 75%, #2563EB 100%);
    /* Bleed upward into the 60px reserved nav strip */
    margin-top: -60px;
    padding-top: 60px;
    width: 100%;
    position: relative;
    overflow: hidden;
}
/* Subtle glow overlay */
.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 80% 50%, rgba(255,180,80,0.15) 0%, transparent 50%),
        radial-gradient(circle at 10% 80%, rgba(255,255,255,0.04) 0%, transparent 40%);
    pointer-events: none;
}
.page-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 24px 32px 28px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    /* Push content away from the fixed nav pill on the right */
    padding-right: 180px;
}
.page-hero-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(191, 219, 254, 0.90);
    margin: 0 0 6px;
}
.page-hero-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.page-hero-sub {
    font-size: 0.88rem;
    color: rgba(219, 234, 254, 0.85);
    margin: 0;
    font-weight: 500;
}
@media (max-width: 768px) {
    .page-hero-inner {
        padding: 20px 16px;   /* no right offset needed on mobile */
    }
    .page-hero-title { font-size: 1.35rem; }
}

/* ── Nav Profile Trigger & Initials Badge ──────────────── */
.nav-profile-trigger {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
}
.nav-profile-trigger img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(37, 99, 235, 0.35);
    display: block;
}
.nav-profile-initials {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1E3A5F, #2D5282);
    color: #1E3A5F;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 200, 130, 0.30);
    flex-shrink: 0;
}

