/* ===== Custom Styles - Override Bootstrap ===== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #0f2b46;
    --primary-mid: #1a4a7a;
    --primary-light: #2980b9;
    --accent: #f0a500;
    --accent-hover: #d4920a;
    --accent-glow: rgba(240,165,0,0.25);
    --success: #10b981;
    --danger: #ef4444;
    --bg-light: #f4f6fb;
    --sidebar-bg: #0f1923;
    --sidebar-width: 240px;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04);
    --card-hover-shadow: 0 8px 30px rgba(0,0,0,0.08);
    --radius: 12px;
    --radius-sm: 8px;
}

body {
    font-family: 'Inter', 'Noto Sans Bengali', system-ui, sans-serif;
    font-size: 0.875rem;
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

/* ===== Navbar ===== */
.navbar-custom {
    background: rgba(15,43,70,0.95);
    backdrop-filter: blur(12px);
    padding: 0.6rem 0;
    box-shadow: 0 1px 20px rgba(0,0,0,0.12);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.navbar-custom .navbar-brand { color: #fff !important; font-size: 1rem; letter-spacing: -0.3px; }
.navbar-custom .nav-link { color: rgba(255,255,255,0.8) !important; font-size: 0.8125rem; font-weight: 500; transition: color 0.2s; }
.navbar-custom .nav-link:hover { color: var(--accent) !important; }
.navbar-toggler { border-color: rgba(255,255,255,0.2); }
.navbar-toggler-icon { filter: brightness(0) invert(1); }

/* ===== Buttons ===== */
.btn {
    font-size: 0.8125rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: all 0.25s ease;
}
.btn-primary { background: var(--primary-mid); border-color: var(--primary-mid); }
.btn-primary:hover { background: var(--primary-light); border-color: var(--primary-light); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(26,74,122,0.3); }
.btn-warning { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-warning:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px var(--accent-glow); }
.btn-outline-light:hover { background: rgba(255,255,255,0.15); }

/* ===== Cards ===== */
.card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    overflow: hidden;
}
.card:hover { box-shadow: var(--card-hover-shadow); }
.card-header {
    background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 0.8125rem;
    padding: 0.65rem 1rem;
}

/* ===== Forms ===== */
.form-control, .form-select {
    font-size: 0.8125rem;
    border-radius: var(--radius-sm);
    border-color: var(--border-color);
    padding: 0.5rem 0.75rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(41,128,185,0.12);
}
.form-label { font-weight: 500; font-size: 0.8125rem; margin-bottom: 0.3rem; color: var(--text-dark); }

/* ===== Tables ===== */
.table { font-size: 0.8125rem; }
.table th {
    font-weight: 600; background: #f8fafc; white-space: nowrap;
    font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted);
    border-bottom-width: 2px;
}
.table td { vertical-align: middle; }
.table-hover tbody tr:hover { background: #f0f4ff; }

/* ===== Admin Sidebar ===== */
.admin-sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background: linear-gradient(180deg, var(--sidebar-bg) 0%, #0a1219 100%);
    flex-shrink: 0;
    transition: all 0.3s;
}
.sidebar-link {
    color: rgba(176,190,197,0.85) !important;
    font-size: 0.8125rem;
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-sm);
    margin-bottom: 2px;
    transition: all 0.2s;
}
.sidebar-link:hover { color: #fff !important; background: rgba(255,255,255,0.08); }
.sidebar-link.active { color: #fff !important; background: rgba(41,128,185,0.25); border-left: 3px solid var(--accent); }
.sidebar-divider { border-top: 1px solid rgba(255,255,255,0.06); }
.admin-body { background: var(--bg-light); }
#page-content-wrapper { min-height: 100vh; }

/* ===== Stat Cards ===== */
.stat-card { border-left: 4px solid var(--primary); transition: transform 0.25s, box-shadow 0.25s; }
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--card-hover-shadow); }
.stat-card .stat-number { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.5px; }
.stat-card .stat-label { font-size: 0.6875rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }

/* ===== Status Badges ===== */
.badge { font-weight: 600; letter-spacing: 0.02em; }
.badge-draft { background: #94a3b8; }
.badge-submitted { background: #3b82f6; }
.badge-pending_review { background: #f59e0b; }
.badge-needs_correction { background: #f97316; }
.badge-approved { background: #10b981; }
.badge-rejected { background: #ef4444; }

/* ===== Hero Section ===== */
.hero-section {
    background: linear-gradient(160deg, #0a1628 0%, var(--primary) 40%, var(--primary-mid) 70%, #1a5c8e 100%);
    color: #fff;
    padding: 4.5rem 0 4rem;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(240,165,0,0.06) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 20%, rgba(41,128,185,0.08) 0%, transparent 50%);
    animation: heroFloat 20s ease-in-out infinite;
}
@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-2%, 1%) rotate(1deg); }
}
.hero-section::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-section .hero-logo {
    height: 90px; width: auto; border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    border: 2px solid rgba(255,255,255,0.15);
}
.hero-section h4 { font-weight: 600; letter-spacing: 0.5px; }
.hero-section h1 { font-weight: 800; letter-spacing: -0.5px; line-height: 1.2; }
.hero-section .lead { font-weight: 400; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ===== Countdown - Premium Style ===== */
.countdown-box {
    display: inline-flex;
    gap: 1rem;
    margin-top: 2rem;
}
.countdown-item {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    text-align: center;
    min-width: 80px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, background 0.3s;
}
.countdown-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #fbbf24);
    border-radius: 3px 3px 0 0;
}
.countdown-item:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.12);
}
.countdown-item .number {
    font-size: 2rem;
    font-weight: 800;
    display: block;
    line-height: 1.1;
    background: linear-gradient(180deg, #fff 30%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.countdown-item .label {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.6;
    font-weight: 600;
    margin-top: 4px;
    display: block;
}
.countdown-label {
    font-size: 0.75rem;
    opacity: 0.45;
    margin-top: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* ===== Section Styling ===== */
.section-title {
    font-weight: 800;
    color: var(--primary);
    position: relative;
    display: inline-block;
    margin-bottom: 1.75rem;
    font-size: 1.5rem;
    letter-spacing: -0.3px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 45px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), #fbbf24);
    border-radius: 4px;
}
.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ===== Landing Cards - About / Contact ===== */
.landing-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    background: #fff;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}
.landing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.08);
}
.landing-card .card-icon {
    width: 60px; height: 60px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.landing-card .card-icon.icon-gold { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #b45309; }
.landing-card .card-icon.icon-blue { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #1d4ed8; }
.landing-card .card-icon.icon-green { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #047857; }
.landing-card .card-icon.icon-purple { background: linear-gradient(135deg, #ede9fe, #ddd6fe); color: #6d28d9; }

/* ===== Process Steps ===== */
.process-step {
    text-align: center;
    padding: 1.25rem 0.75rem;
    position: relative;
}
.process-step .step-icon {
    width: 56px; height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary-mid), var(--primary-light));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 15px rgba(26,74,122,0.25);
    transition: transform 0.3s;
}
.process-step:hover .step-icon { transform: scale(1.1); }
.process-step .step-num {
    position: absolute;
    top: 0.5rem; right: calc(50% - 40px);
    background: var(--accent);
    color: #fff;
    width: 22px; height: 22px;
    border-radius: 50%;
    font-size: 0.6875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px var(--accent-glow);
}

/* ===== Eligibility List ===== */
.eligibility-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: #fff;
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
}
.eligibility-item:hover { transform: translateX(4px); box-shadow: var(--card-shadow); }
.eligibility-item .ei-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
}
.ei-icon.green { background: #d1fae5; color: #047857; }
.ei-icon.blue { background: #dbeafe; color: #1d4ed8; }

/* ===== Notice Cards ===== */
.notice-card {
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: none;
    transition: transform 0.2s;
}
.notice-card:hover { transform: translateY(-2px); }
.notice-card .notice-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    flex-shrink: 0;
}

/* ===== Footer ===== */
.footer-custom {
    background: linear-gradient(180deg, #0f1923 0%, #0a1219 100%);
    color: #fff;
}
.footer-custom p { color: rgba(255,255,255,0.7); }
.footer-custom a { color: var(--accent); transition: color 0.2s; }
.footer-custom a:hover { color: #fbbf24; }

/* ===== FAQ ===== */
.accordion-item { border: 1px solid var(--border-color); border-radius: var(--radius-sm) !important; margin-bottom: 0.5rem; overflow: hidden; }
.accordion-button { font-weight: 600; font-size: 0.875rem; padding: 0.85rem 1.25rem; }
.accordion-button:not(.collapsed) { background: #f0f4ff; color: var(--primary); box-shadow: none; }
.accordion-button:focus { box-shadow: none; border-color: var(--border-color); }

/* ===== Print Styles ===== */
@media print {
    .no-print { display: none !important; }
    body { font-size: 12pt; }
    .invitation-card { border: 2px solid #000; padding: 2rem; }
}

/* ===== Responsive Sidebar ===== */
@media (max-width: 767.98px) {
    .admin-sidebar { position: fixed; left: calc(-1 * var(--sidebar-width)); z-index: 1050; transition: left 0.3s; }
    .admin-sidebar.show { left: 0; }
    .countdown-item { min-width: 65px; padding: 0.75rem 0.5rem; }
    .countdown-item .number { font-size: 1.5rem; }
    .hero-section { padding: 3rem 0 2.5rem; }
    .hero-section h1 { font-size: 1.75rem; }
}

/* ===== Select2 Override ===== */
.select2-container--bootstrap-5 .select2-selection {
    font-size: 0.8125rem;
    min-height: 34px;
    border-color: var(--border-color);
}
