/**
 * Gandhi Institute of Excellent Technocrats (GIET)
 * × MindBrain Innovation (MBI)
 * Institutional Collaboration & Project Portal Stylesheet
 */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --navy-primary: #101D35;
    --navy-dark: #0A1324;
    --white: #FFFFFF;
    --bg-light: #F5F6F8;
    --bg-secondary: #E9EDF2;
    --text-primary: #182230;
    --text-secondary: #667085;
    --accent-bronze: #B78B4B;
    --border-color: #E1E5EA;
    --font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* Base resets & typography */
html {
    scroll-behavior: smooth;
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--white);
}

section[id] {
    scroll-margin-top: 76px;
}

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

.font-mono {
    font-family: var(--font-mono);
}

/* Header */
.glass-header {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
}

@media (max-width: 640px) {
    header.glass-header {
        height: 4rem;
    }
    header.glass-header .max-w-7xl {
        height: 4rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    section[id] {
        scroll-margin-top: 64px;
    }
}

/* Navigation Links */
.nav-link {
    position: relative;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.15s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--navy-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-bronze);
}

/* Institutional Cards & Surfaces */
.institution-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.institution-card:hover {
    border-color: #CBD5E1;
    box-shadow: 0 4px 12px rgba(16, 29, 53, 0.05);
}

/* Scroll reveal */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Modals & Drawers */
.modal-backdrop {
    background-color: rgba(16, 29, 53, 0.55);
    transition: opacity 0.2s ease-out;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: var(--bg-light);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

/* Registration Certificate / Voucher Card */
.voucher-card {
    background: var(--white);
    border: 1px dashed #CBD5E1;
    border-radius: 8px;
    position: relative;
}

/* Print styles for Registration Slip */
@media print {
    body * {
        visibility: hidden;
    }
    #registrationSuccessModal,
    #registrationSuccessModal * {
        visibility: visible;
    }
    #registrationSuccessModal {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        background: white !important;
        padding: 0 !important;
    }
    .no-print {
        display: none !important;
    }
}

/* Toast container */
#toastContainer {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast-message {
    pointer-events: auto;
    animation: toastSlideIn 0.25s ease forwards;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Admin layout custom styling */
.admin-sidebar-item {
    transition: background-color 0.15s ease, color 0.15s ease;
}

.admin-sidebar-item.active {
    background-color: var(--bg-light);
    color: var(--navy-primary);
    font-weight: 600;
    border-right: 3px solid var(--navy-primary);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}
