/* ==========================================================================
   GEC Barmer - Student Portal Modern Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Outfit', sans-serif;

    /* Color Palette */
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-dark: #1e3a8a;
    --primary-light: #eff6ff;
    --primary-gradient: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    --primary-glow: rgba(37, 99, 235, 0.25);

    --accent-navy: #0f172a;
    --accent-amber: #f59e0b;
    --accent-emerald: #10b981;
    --accent-rose: #f43f5e;
    --accent-indigo: #6366f1;

    --bg-body: #f8fafc;
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --card-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
    --card-shadow-hover: 0 12px 28px -4px rgba(15, 23, 42, 0.1), 0 4px 10px -2px rgba(15, 23, 42, 0.05);

    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    --border-radius-sm: 8px;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-body);
    color: var(--text-main);
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6, .heading-font {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    font-weight: 700;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.student-navbar {
    background: #0f172a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.college-logo-badge-sm {
    width: 44px;
    height: 44px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.85);
    flex-shrink: 0;
}

.college-logo-badge-sm img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-title-sm {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    color: #ffffff;
    line-height: 1.1;
    margin: 0;
}

.brand-subtitle-sm {
    font-size: 0.72rem;
    color: var(--accent-amber);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin: 0;
}

.student-user-pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    padding: 6px 14px;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.student-avatar-sm {
    width: 30px;
    height: 30px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #ffffff;
}

/* ==========================================================================
   Hero Profile Card
   ========================================================================== */
.profile-hero-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--card-shadow);
    padding: 28px;
    position: relative;
    overflow: hidden;
    margin-bottom: 28px;
}

.profile-hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--primary-gradient);
}

.student-photo-frame {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    padding: 4px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.2);
    border: 3px solid #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0 auto;
}

.student-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-name {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 4px;
}

.info-chip {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.info-label-sm {
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 3px;
}

.info-value-sm {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

/* ==========================================================================
   Modern Accordion for Detailed Info
   ========================================================================== */
.custom-accordion .accordion-item {
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius) !important;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.custom-accordion .accordion-button {
    background-color: #ffffff;
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 16px 20px;
    box-shadow: none !important;
}

.custom-accordion .accordion-button:not(.collapsed) {
    background-color: #f8fafc;
    color: var(--primary);
    border-bottom: 1px solid var(--card-border);
}

.custom-accordion .accordion-body {
    padding: 20px;
    background-color: #ffffff;
}

/* ==========================================================================
   Documents Preview Tiles
   ========================================================================== */
.doc-tile {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 16px;
    text-align: center;
    transition: all 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.doc-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow);
    border-color: #93c5fd;
}

.doc-icon-box {
    width: 44px;
    height: 44px;
    background: #eff6ff;
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin: 0 auto 10px auto;
}

/* ==========================================================================
   Fee Dues Cards
   ========================================================================== */
.student-fee-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.student-fee-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

.student-fee-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.student-fee-card.overdue::before {
    background: linear-gradient(90deg, #ef4444, #b91c1c);
}

.fee-category-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 12px;
}

.fee-badge-pending {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.fee-badge-overdue {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.fee-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.3;
    margin-bottom: 8px;
}

.fee-price {
    font-size: 1.85rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: #059669;
    margin: 10px 0;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.fee-line-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding: 4px 0;
    color: var(--text-muted);
}

.btn-pay-now {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    border: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    padding: 12px;
    border-radius: var(--border-radius);
    width: 100%;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
}

.btn-pay-now:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

/* ==========================================================================
   Table & History Card
   ========================================================================== */
.history-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    margin-bottom: 36px;
}

.history-card-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ==========================================================================
   Student Portal Footer
   ========================================================================== */
.student-footer {
    background: #ffffff;
    border-top: 1px solid var(--card-border);
    padding: 24px 0;
    margin-top: auto;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 767.98px) {
    .profile-hero-card {
        padding: 20px 16px;
    }

    .profile-name {
        font-size: 1.35rem;
        text-align: center;
    }

    .profile-meta-row {
        text-align: center;
        justify-content: center;
    }

    .fee-price {
        font-size: 1.6rem;
    }

    .student-navbar .brand-title-sm {
        font-size: 1rem;
    }
}

/* ==========================================================================
   Student Login Page Styles
   ========================================================================== */
.student-login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top center, #1e293b 0%, #0f172a 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.student-login-wrapper::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, rgba(37, 99, 235, 0) 70%);
    top: -150px;
    right: -150px;
    border-radius: 50%;
    pointer-events: none;
}

.student-login-wrapper::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, rgba(245, 158, 11, 0) 70%);
    bottom: -100px;
    left: -100px;
    border-radius: 50%;
    pointer-events: none;
}

.student-login-card {
    background: #ffffff;
    border-radius: var(--border-radius-xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 460px;
    overflow: hidden;
    position: relative;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.student-login-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: #ffffff;
    padding: 36px 24px 30px;
    text-align: center;
    position: relative;
}

.student-logo-badge {
    width: 80px;
    height: 80px;
    background: #ffffff;
    border-radius: 50%;
    margin: 0 auto 16px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.35);
    border: 3px solid rgba(255, 255, 255, 0.85);
}

.student-logo-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.student-form-control {
    border-radius: var(--border-radius-sm);
    padding: 12px 14px;
    font-size: 0.95rem;
    border: 1px solid #cbd5e1;
    transition: all 0.2s ease;
}

.student-form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.student-input-group-text {
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #64748b;
    border-radius: var(--border-radius-sm) 0 0 var(--border-radius-sm);
    padding: 0 16px;
}

.btn-student-login {
    background: var(--primary-gradient);
    color: #ffffff;
    border: none;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 13px;
    border-radius: var(--border-radius-sm);
    width: 100%;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-student-login:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

/* ==========================================================================
   Gateway Response Styles
   ========================================================================== */
.gateway-card {
    background: #ffffff;
    border-radius: var(--border-radius-xl);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 520px;
    overflow: hidden;
    border: 1px solid var(--card-border);
}

