:root {
    --primary-color: #1a237e; /* Royal Professional Blue */
    --accent-color: #c62828; /* Deep Official Red */
    --text-color: #2c3e50;
    --border-color: #d1d9e6;
    --bg-light: #f8fafc;
    --surface-white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-color);
    padding: 0; /* Removed fixed padding for header to work */
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Global Modern Layout --- */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content-main {
    flex: 1;
}

/* --- Professional Header --- */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(26, 35, 126, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--primary-color);
}

.logo-brand img {
    height: 48px;
    width: auto;
}

.brand-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 6px;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(26, 35, 126, 0.05);
}

.nav-link.active {
    color: white !important;
    background: var(--primary-color);
}

.btn-login {
    background: linear-gradient(135deg, var(--primary-color), #3949ab);
    color: white !important;
    padding: 10px 22px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(26, 35, 126, 0.2);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(26, 35, 126, 0.3);
}

/* --- Hero Section Enhanced --- */
.hero-section {
    position: relative;
    padding: 120px 20px;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.95), rgba(26, 35, 126, 0.8)), url('https://images.unsplash.com/photo-1541339907198-e08756ebafe3?auto=format&fit=crop&q=80&w=2070');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -10%;
    width: 120%;
    height: 200px;
    background: var(--bg-light);
    transform: rotate(-3deg);
    z-index: 1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-btns {
    display: flex !important;
    gap: 32px !important; /* Increased spacing as requested by the user */
    margin-top: 35px !important;
    flex-wrap: wrap !important; /* Safety for mobile */
}

.hero-content {
    text-align: left;
    animation: slideUp 1s ease-out;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.hero-title {
    font-size: clamp(36px, 5vw, 64px);
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 25px;
    text-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 22px; /* Increased for impact */
    color: #ffffff;
    max-width: 700px;
    margin-bottom: 45px;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-image-box {
    position: relative;
    animation: fadeIn 1.5s ease-out, float 6s ease-in-out infinite;
}

.hero-title {
    font-size: clamp(32px, 5vw, 56px);
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: #ffffff !important;
    line-height: 1.1;
    margin-bottom: 25px;
    text-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

@keyframes float {
	0% { transform: translateY(0px); }
	50% { transform: translateY(-20px); }
	100% { transform: translateY(0px); }
}

/* --- Buttons --- */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 18px 40px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: 0.3s;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #ff9933, #ff7043); /* Saffron-Orange PM SHRI Premium Gradient */
    color: white !important;
    box-shadow: 0 10px 25px rgba(255, 153, 51, 0.4);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff8c1a, #f4511e);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 112, 67, 0.5);
    color: white !important;
}

.btn-secondary {
    background: rgba(255,255,255,0.15);
    color: white !important;
    border: 2px solid rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color) !important;
}

/* --- Stats Section --- */
.stats-section {
    padding: 60px 20px;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Forced 4 columns for modern look */
    gap: 30px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.stat-card {
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(26, 35, 126, 0.15);
    background: white;
}

.stat-icon {
    font-size: 36px;
    margin-bottom: 20px;
    display: block;
    transition: 0.3s;
}

.stat-card:hover .stat-icon {
    transform: scale(1.2);
}

.stat-number {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-family: 'Outfit', sans-serif;
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- BaLA Decorative Elements --- */
.bala-pattern {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(26, 35, 126, 0.02) 1%, transparent 1%),
        radial-gradient(circle at 90% 80%, rgba(198, 40, 40, 0.02) 1%, transparent 1%);
    background-size: 100px 100px;
    pointer-events: none;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(26, 35, 126, 0.03);
    pointer-events: none;
    z-index: 1;
}

/* --- Section Dividers --- */
.divider-svg {
    width: 100%;
    height: auto;
    display: block;
    margin-top: -1px;
}

/* --- Section Header --- */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-family: 'Outfit', sans-serif;
}

.section-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    margin: 0 auto;
    border-radius: 2px;
}

/* --- Features Section --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Professional 4-column layout */
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.feature-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(26, 35, 126, 0.05);
    padding: 40px 25px;
    border-radius: 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-card::before {
    content: "" !important; 
    display: none !important;
}

/* Add a subtle MP Govt Seal watermark effect on hover */
.feature-card::after {
    content: "";
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: url('https://upload.wikimedia.org/wikipedia/commons/thumb/a/ae/Emblem_of_Madhya_Pradesh.png/200px-Emblem_of_Madhya_Pradesh.png') no-repeat center;
    background-size: contain;
    opacity: 0;
    filter: grayscale(1) brightness(2);
    transition: all 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

/* Proper MP Govt Seal watermark effect */
.feature-card::after {
    content: "";
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 90px;
    height: 90px;
    background: url('https://upload.wikimedia.org/wikipedia/commons/thumb/a/ae/Emblem_of_Madhya_Pradesh.png/200px-Emblem_of_Madhya_Pradesh.png') no-repeat center !important;
    background-size: contain !important;
    opacity: 0;
    filter: grayscale(1) brightness(2.5);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1;
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 40px 80px rgba(26, 35, 126, 0.12);
    border-color: var(--primary-color);
}

.feature-card:hover::before { opacity: 1; }
.feature-card:hover::after { 
    opacity: 0.2; 
    bottom: 12px; 
    right: 12px; 
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: rgba(26, 35, 126, 0.05);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
    color: var(--primary-color);
    transition: 0.3s;
}

.feature-card:hover .feature-icon {
    background: var(--primary-color);
    color: white;
    transform: rotate(10deg);
}

.feature-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 15px; }
.feature-card p { font-size: 14px; color: #666; }

/* --- Footer --- */
.main-footer {
    background: #0a0e2a;
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 20px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: white;
    font-size: 18px;
    margin-bottom: 25px;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-color);
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { 
    color: rgba(255, 255, 255, 0.7); 
    text-decoration: none; 
    transition: 0.3s; 
    font-size: 15px; /* Increased for better visibility */
}
.footer-links a:hover { color: white; padding-left: 5px; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
}

/* --- Responsive Navigation --- */
.mobile-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--primary-color); }

@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 40px;
        gap: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        display: none; /* Toggle with JS */
    }
    .nav-links.active { display: flex; }
}

/* Standard admission form container refinement */
.form-container {
    max-width: 950px;
    margin: 40px auto;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
    border-top: 8px solid var(--primary-color);
    position: relative;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.school-info {
    flex: 1;
    padding: 0 15px;
}

h1 {
    font-size: 28px; /* Increased for better visibility */
    color: var(--accent-color);
    font-weight: 800; /* Extra bold */
    text-transform: uppercase;
    margin-bottom: 5px;
}

h2 {
    font-size: 16px;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 10px;
}

.separator-line {
    border-top: 1px solid #eee;
    margin: 10px 0;
}

.session-text {
    font-weight: bold;
    font-size: 16px;
    color: var(--primary-color);
}

.registration-title {
    display: block;
    margin: 20px auto;
    padding: 10px;
    background: var(--primary-color);
    color: white;
    font-size: 22px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 5px;
}

.form-body {
    padding-top: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.form-row.three-col .form-group {
    flex: 1;
    min-width: 180px;
}

.form-group {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.full-width {
    width: 100%;
}

label {
    font-weight: 600;
    font-size: 14px;
    color: #444;
}

input[type="text"],
input[type="date"],
input[type="tel"],
input[type="number"],
select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 16px; /* Slightly larger */
    font-weight: 600; /* Bolder for visibility */
    background-color: #fff;
    transition: all 0.3s ease;
    outline: none;
    color: #000;
}

input:focus, select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

.photo-box {
    width: 100%;
    height: 120px;
    border: 2px dashed #bbb;
    background: #fdfdfd;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.photo-box:hover {
    border-color: var(--primary-color);
    background: #f0f7ff;
}

.photo-box span {
    font-size: 12px;
    color: #64748b;
    margin-top: 10px;
}

#photo-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    display: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.signature-row {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.sig-box {
    text-align: center;
    width: 30%;
    font-weight: bold;
    font-size: 14px;
}

.sig-line {
    border-top: 1px solid #000;
    margin-bottom: 5px;
    width: 100%;
}

.submit-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 40px auto 0;
    padding: 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.3s;
}

.submit-btn:hover {
    background: #0d144a;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

@media print {
    @page {
        size: A4 portrait;
        margin: 0; /* Browser defaults 0 to avoid headers/footers */
    }
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    body { 
        padding: 0; 
        margin: 0;
        background: white !important; 
        font-family: 'Outfit', sans-serif !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    /* Dedicated Print Canvas Setup - Official Document Style */
    .form-container {
        width: 190mm !important; /* A4 width 210mm minus 20mm total margin */
        height: 265mm !important; /* Reduced to ensure safety buffer on various browsers */
        margin: 5mm auto !important; /* Tighter margins */
        padding: 5mm 12mm !important; /* Reduced padding */
        border: 2px solid #000 !important; /* Solid border for cleaner look */
        box-shadow: none !important; 
        border-top: 2px solid #000 !important;
        position: relative !important;
        background: #fff !important;
        box-sizing: border-box !important;
        outline: none !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .form-body {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 !important;
        padding-top: 5px !important;
    }
    .form-body form {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 !important;
    }

    /* Absolute Reset: Kill outside elements */
    html, body {
        border: none !important;
        box-shadow: none !important;
        outline: none !important;
    }

    /* Hide UI strictly */
    .no-print, .submit-btn, .photo-box input, .no-preview, #button-group, #print-tip, label[for="student_photo"] { 
        display: none !important; 
    }
    
    #photo-preview-img {
        display: block !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 10 !important;
    }
    .print-only-text {
        display: flex !important;
        align-items: center;
        justify-content: center;
        height: 100%;
        width: 100%;
    }

    /* Structured Header */
    header {
        margin-bottom: 10px !important;
        border-bottom: 2px solid #000 !important;
        padding-bottom: 5px !important;
    }
    header img {
        height: 45px !important; 
    }
    h1 {
        font-size: 16px !important; 
        color: #000 !important; /* Force black for official print */
        font-weight: bold !important;
    }
    h2 {
        font-size: 12px !important;
        color: #000 !important;
    }
    
    .form-row {
        margin-bottom: 3px !important; /* Tighter for expanded form */
        gap: 8px !important;
        flex-wrap: nowrap !important;
    }
    .form-row.three-col {
        gap: 5px !important;
    }
    .form-group {
        gap: 1px !important; 
        flex: 1 !important;
    }
    label {
        font-size: 13px !important; /* Larger for better readability */
        font-weight: 700 !important;
        color: #000 !important;
        margin-bottom: 0 !important;
    }
    input, select {
        font-size: 14px !important;
        padding: 2px 0 !important;
        color: #000 !important; /* Explicit black */
        opacity: 1 !important; /* Explicit opacity */
    }
    .registration-title {
        background: var(--primary-color) !important;
        color: white !important;
        border: none !important;
        margin: 3px auto !important; /* Tighter margin */
        padding: 4px 20px !important;
        font-size: 13px !important;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        text-align: center;
        display: inline-block;
        border-radius: 4px;
    }
    
    /* Official style for inputs - Underline removed as requested */
    input, select {
        border: none !important;
        border-bottom: 1px solid #333 !important; /* Clearer underline */
        background: transparent !important;
        border-radius: 0 !important;
        padding: 2px 0 !important;
        appearance: none;
        -webkit-appearance: none;
        font-size: 15px !important; /* Improved size */
        height: auto !important;
        color: #000 !important;
        font-weight: 700 !important; /* Stronger text */
    }
    
    .signature-row {
        margin-top: 50px !important; /* Adjusted slightly up from the absolute bottom */
        padding-top: 10px !important;
        border-top: none !important; /* Remove full line, use individual lines */
        display: flex !important;
        justify-content: space-between !important;
        align-items: flex-end !important;
        page-break-inside: avoid !important; /* Prevent signatures from breaking pages */
    }
    .sig-box {
        width: 30% !important;
        text-align: center !important;
        font-size: 10px !important;
        font-weight: 600 !important;
        color: #000 !important;
        text-transform: uppercase;
    }
    .sig-line {
        border-top: 1px solid #000 !important;
        margin-bottom: 3px !important;
        width: 100% !important;
    }
    
    /* Passport Photo Box Placement */
    .photo-box {
        border: 1px solid #000 !important;
        background: transparent !important;
        position: absolute !important;
        right: 12mm !important; 
        top: 45mm !important; /* Adjusted to sit below the header info */
        width: 35mm !important; /* Standard passport width */
        height: 45mm !important; /* Standard passport height */
        min-height: 45mm !important;
        z-index: 100 !important;
    }
}

/* Print Preview Mode (on-screen sheet style) */
@media screen {
    .print-preview {
        box-shadow: 0 0 20px rgba(0,0,0,0.3) !important;
        border: 1px solid #000 !important;
        transform-origin: top center;
        font-family: 'Times New Roman', Times, serif !important;
        color: #000 !important;
        background-color: white !important;
    }
    
    .print-preview .form-container {
        border: 1px solid #000 !important; /* Paper edge boundary on screen */
        width: 210mm !important; 
        height: auto !important; 
        min-height: 297mm !important;
        padding: 10mm 15mm !important; 
        margin: 0 auto !important;
        border-radius: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .print-preview .form-body {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 !important;
    }
    .print-preview .form-body form {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 !important;
    }

    body.preview-mode {
        background-color: #555 !important; /* Grey background like a PDF viewer */
        padding: 0 0 100px !important;
    }

    body.preview-mode .form-container {
        transform: scale(0.9); /* Slight scale down to fit on typical laptop screens */
        margin: 40px auto 0 !important;
    }

    .print-preview .submit-btn, 
    .print-preview .photo-box input, 
    .print-preview .no-preview,
    .print-preview label[for="student_photo"],
    .print-preview #button-group { 
        display: none !important; 
    }

    .print-preview .print-only-text {
        display: flex !important;
        height: 100%;
        align-items: center;
        justify-content: center;
    }

    .print-preview .registration-title {
        background: transparent !important;
        color: black !important;
        border-top: 1px solid #000 !important;
        border-bottom: 1px solid #000 !important;
        border-left: none !important;
        border-right: none !important;
        border-radius: 0 !important;
        margin: 10px auto !important;
        padding: 5px !important;
        font-size: 16px !important;
    }

    .print-preview input, 
    .print-preview select {
        border: none !important;
        background: transparent !important;
        border-radius: 0 !important;
        padding: 0 !important;
        appearance: none;
        -webkit-appearance: none;
        color: #000 !important;
        font-family: 'Outfit', sans-serif !important;
        font-size: 15px !important;
    }

    .print-preview .photo-box {
        position: absolute !important;
        right: 15mm !important; 
        top: 85mm !important; /* Adjusted for larger on-screen preview header space */
        width: 35mm !important; 
        height: 45mm !important;
        aspect-ratio: 3.5 / 4.5 !important;
        min-height: 45mm !important;
        border: 1px solid #000 !important;
        border-radius: 0 !important;
        z-index: 100 !important;
        background-color: #fff !important;
    }

    .print-preview .signature-row {
        margin-top: 50px !important;
    }

    .print-preview .form-row {
        margin-bottom: 10px !important;
    }
    
    .print-preview .form-row.three-col .form-group {
        min-width: unset !important;
    }

    .print-preview header {
        margin-bottom: 10px !important;
    }

    .print-preview h1 { font-size: 18px !important; }
    .print-preview h2 { font-size: 12px !important; }
}

@media (max-width: 1100px) {
    .stats-container, .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .stats-container, .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Premium User Toolbar */
.user-toolbar {
    position: absolute;
    top: -60px;
    right: 0;
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 10px 8px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(26, 35, 126, 0.1);
    backdrop-filter: blur(10px);
}

.user-info-text {
    font-size: 14px;
    color: var(--text-color);
    font-weight: 500;
}

.user-info-text strong {
    color: var(--primary-color);
}

.logout-smart-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ff5252, #e53935);
    color: white !important;
    padding: 10px 20px;
    border-radius: 40px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.2);
}

.logout-smart-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(229, 57, 53, 0.3);
    background: linear-gradient(135deg, #ff1744, #d50000);
}

.logout-smart-btn:active {
    transform: translateY(0);
}

.logout-icon {
    font-size: 16px;
}
