/**
 * Internal Smart India Hackathon (SIH) 2026 Portal Stylesheet
 * Custom CSS for Responsive Design, Multi-step wizard, Live validation & Print Receipts
 */

:root {
    --primary-color: #0d47a1;
    --primary-dark: #082d64;
    --primary-light: #e3f2fd;
    --secondary-color: #1976d2;
    --accent-color: #f59e0b;
    --accent-hover: #d97706;
    --bg-portal: #f5f7fb;
    --dark-navy: #0a192f;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --card-shadow: 0 4px 12px rgba(13, 71, 161, 0.08);
    --card-hover-shadow: 0 10px 24px rgba(13, 71, 161, 0.12);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-portal);
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .brand-font {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Navbars & Header */
.bg-primary-navy {
    background-color: var(--primary-color) !important;
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%);
}

.bg-dark-navy {
    background-color: var(--dark-navy) !important;
}

.bg-navy-footer {
    background-color: #08172c;
}

.brand-badge {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffca28;
    backdrop-filter: blur(4px);
}

.college-logo-img {
    height: 88px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    background: #ffffff;
    padding: 6px 12px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease;
    display: block;
}

@media (max-width: 992px) {
    .college-logo-img {
        height: 72px;
        max-width: 210px;
        padding: 5px 10px;
    }
}

@media (max-width: 768px) {
    .college-logo-img {
        height: 60px;
        max-width: 170px;
        padding: 4px 8px;
    }
}

@media (max-width: 480px) {
    .college-logo-img {
        height: 56px;
        max-width: 145px;
        padding: 3px 6px;
    }
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-link:hover {
    color: #ffffff;
    padding-left: 4px;
}

/* Hero Section */
.hero-banner {
    background: linear-gradient(135deg, #0d47a1 0%, #1e3a8a 50%, #0a192f 100%);
    color: #ffffff;
    padding: 4.5rem 0 3.5rem;
    position: relative;
    overflow: hidden;
}

.hero-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(25, 118, 210, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Full-Screen College Logo Intro Section */
.fullscreen-logo-intro {
    min-height: 100vh;
    width: 100%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    position: relative;
    box-sizing: border-box;
}

.intro-college-logo {
    max-width: 78vw;
    max-height: 75vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .fullscreen-logo-intro {
        min-height: 70vh;
        padding: 2rem 1rem;
    }
    .intro-college-logo {
        max-width: 90vw;
        max-height: 60vh;
    }
}

.hero-badge {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    backdrop-filter: blur(6px);
}

/* Cards & Containers */
.card-custom {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card-header-custom {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
}

.card-header-navy {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1.25rem 1.5rem;
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
}

/* Multi-Step Form Stepper */
.stepper-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.stepper-nav::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: #cbd5e1;
    z-index: 1;
}

.stepper-step {
    position: relative;
    z-index: 2;
    text-align: center;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
}

.stepper-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #94a3b8;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 0.5rem;
    transition: all 0.3s ease;
}

.stepper-step.active .stepper-circle {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(13, 71, 161, 0.2);
}

.stepper-step.completed .stepper-circle {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
}

.stepper-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}

.stepper-step.active .stepper-label {
    color: var(--primary-color);
    font-weight: 700;
}

/* Member Card Styles */
.member-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.member-card.leader-card {
    border: 2px solid #3b82f6;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.12);
}

.member-card-header {
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.leader-card .member-card-header {
    background: #eff6ff;
    color: #1d4ed8;
    border-bottom-color: #bfdbfe;
}

/* Live Validation Panel */
.live-validation-panel {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 90px;
}

.val-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 0.88rem;
}

.val-item:last-child {
    border-bottom: none;
}

.val-status-badge {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
}

.val-status-ok {
    background-color: #d1fae5;
    color: #065f46;
}

.val-status-fail {
    background-color: #fee2e2;
    color: #991b1b;
}

.val-overall-eligible {
    background: #10b981;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.6rem;
    border-radius: 8px;
    text-align: center;
}

.val-overall-ineligible {
    background: #ef4444;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.6rem;
    border-radius: 8px;
    text-align: center;
}

/* Form Controls */
.form-label {
    font-size: 0.86rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.35rem;
}

.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    padding: 0.55rem 0.85rem;
    font-size: 0.92rem;
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.15);
}

.required-asterisk {
    color: #dc2626;
    font-weight: bold;
}

/* Custom File Upload Area */
.file-upload-box {
    border: 2px dashed #94a3b8;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
}

.file-upload-box:hover, .file-upload-box.dragover {
    border-color: var(--primary-color);
    background: #eff6ff;
}

/* Admin Dashboard Stats Cards */
.stat-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease;
}

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

.stat-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

/* Receipt Print Styling */
@media print {
    body {
        background-color: #ffffff !important;
        color: #000000 !important;
        font-size: 12pt;
    }

    nav, footer, .btn, .no-print, .stepper-nav, .alert {
        display: none !important;
    }

    main {
        padding: 0 !important;
        margin: 0 !important;
    }

    .container {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .receipt-container {
        border: 2px solid #000 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 24px !important;
        margin: 0 !important;
    }

    .receipt-header {
        border-bottom: 2px solid #000 !important;
        padding-bottom: 12px !important;
    }

    table {
        border-collapse: collapse !important;
        width: 100% !important;
    }

    table, th, td {
        border: 1px solid #444 !important;
        padding: 6px 8px !important;
    }

    .badge {
        border: 1px solid #000 !important;
        color: #000 !important;
        background: transparent !important;
    }
}

/* Credits Collapsible Toggle */
.credits-toggle-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.78rem;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.credits-toggle-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.credits-content-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 8px 12px;
    display: inline-block;
    margin-top: 6px;
    font-size: 0.82rem;
}

/* Nomination Letter Specific Styles */
.nomination-paper {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    max-width: 850px;
    margin: 1.5rem auto;
    padding: 3rem 3.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    font-family: 'Times New Roman', Times, serif;
    color: #000000;
    line-height: 1.5;
}

.nomination-header-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.nomination-header-table td {
    border: none !important;
    padding: 2px 0 !important;
    vertical-align: top;
}

.nomination-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.nomination-table th, .nomination-table td {
    border: 1.5px solid #000000 !important;
    padding: 8px 10px !important;
    vertical-align: middle;
}

.nomination-table th {
    background-color: #f8fafc;
    font-weight: bold;
    text-align: center;
}

@media print {
    .nomination-paper {
        border: none !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 1.5cm 1.5cm !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* =======================================================
   Team Evaluation & Results Management Styles
   ======================================================= */

/* Podium Cards */
.podium-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}

.podium-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12) !important;
}

.podium-gold {
    background: linear-gradient(145deg, #ffffff 0%, #fffbeb 60%, #fef3c7 100%);
    border: 2px solid #f59e0b !important;
}

.podium-silver {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 60%, #e2e8f0 100%);
    border: 2px solid #94a3b8 !important;
}

.podium-bronze {
    background: linear-gradient(145deg, #ffffff 0%, #fff7ed 60%, #ffedd5 100%);
    border: 2px solid #d97706 !important;
}

.podium-badge {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    padding: 0.4rem 1.25rem;
    border-radius: 50px;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.gold-badge {
    background: #fef08a;
    color: #854d0e;
    border: 1px solid #facc15;
}

.silver-badge {
    background: #e2e8f0;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.bronze-badge {
    background: #fed7aa;
    color: #7c2d12;
    border: 1px solid #fdba74;
}

/* Leaderboard Rank Badges */
.rank-indicator {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 44px;
}

.table-highlight-rank {
    background-color: #f8fafc;
}

.badge-rank-1 {
    color: #b45309;
}

.badge-rank-2 {
    color: #475569;
}

.badge-rank-3 {
    color: #9a3412;
}

/* Rubric Entry Card */
.rubric-entry-card {
    border-color: #e2e8f0;
    background: #ffffff;
    border-radius: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rubric-entry-card:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.12) !important;
}

/* Printable Results Styles */
@media print {
    .results-page-container {
        padding: 0 !important;
    }

    .printable-table-card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    .printable-table-card table {
        border-collapse: collapse !important;
        width: 100% !important;
        font-size: 10pt !important;
    }

    .printable-table-card th, 
    .printable-table-card td {
        border: 1px solid #333 !important;
        padding: 6px 8px !important;
        color: #000 !important;
    }

    .printable-table-card thead th {
        background-color: #f1f5f9 !important;
        color: #000 !important;
    }

    .no-print {
        display: none !important;
    }
}

