@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #4338ca;
    --primary-dark: #3730a3;
    --primary-light: #6366f1;
    --secondary: #06b6d4;
    --accent: #8b5cf6;
    --background: #f1f5f9;
    --card-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --text-main: #0f172a;
    --text-muted: #475569;
    --border-radius: 1.25rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

h1,
.h1 {
    font-size: 2.25rem;
}

h2,
.h2 {
    font-size: 1.75rem;
}

h3,
.h3 {
    font-size: 1.5rem;
}

h4,
.h4 {
    font-size: 1.25rem;
}

h5,
.h5 {
    font-size: 1.1rem;
}

h6,
.h6 {
    font-size: 0.95rem;
}

.display-1 {
    font-size: 4rem;
}

.display-2 {
    font-size: 3.5rem;
}

.display-3 {
    font-size: 3rem;
}

.display-4 {
    font-size: 2.5rem;
}

.display-5 {
    font-size: 2rem;
}

.display-6 {
    font-size: 1.75rem;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.5;
    font-size: 0.9375rem;
    min-height: 100vh;
}

.app-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    z-index: -1;
}

.app-background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/school_bg_blurred.jpg');
    /* We will generate this or use a placeholder */
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    filter: blur(20px);
    z-index: -2;
}

.glass {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.card-premium {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    transition: var(--transition);
    padding: 1.25rem;
}

.card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.btn-premium {
    padding: 0.5rem 1.25rem;
    border-radius: 0.75rem;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.btn-primary-premium {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
}

.btn-primary-premium:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    transform: scale(1.02);
    color: white;
}

.navbar-premium {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

.navbar-brand-premium {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary) !important;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hero-section {
    position: relative;
    padding: 60px 0;
    overflow: hidden;
    background: transparent;
    color: var(--text-main);
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.text-glass-contrast {
    color: var(--text-main) !important;
}

.text-glass-muted {
    color: var(--text-muted) !important;
}

.stat-card {
    text-align: center;
    padding: 2rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
}

.table-premium {
    border-collapse: separate;
    border-spacing: 0 0.5rem;
}

.table-premium tr {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    border-radius: 0.5rem;
    transition: var(--transition);
}

.table-premium tr:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.005);
}

.table-premium td,
.table-premium th {
    padding: 1rem;
    vertical-align: middle;
}

.table-premium tr td:first-child {
    border-top-left-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
}

.table-premium tr td:last-child {
    border-top-right-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

/* Print Preview Bar */
.preview-bar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1050;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

@media print {

    .no-print,
    .preview-bar {
        display: none !important;
    }

    body {
        background-color: #ffffff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Remove background from all cards and containers in print */
    .card-premium,
    .container,
    .row,
    .col-12,
    .col-md-6,
    .col-xl-4 {
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: none !important;
        box-shadow: none !important;
    }

    /* Force table cells to have white background */
    table th,
    table td {
        background-color: #ffffff !important;
        color: #000000 !important;
    }

    /* Reset background color variables */
    :root {
        --background: #ffffff !important;
        --card-bg: transparent !important;
    }
}