body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #eef2f5;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align to top to fill space if needed */
    min-height: 100vh;
    width: 100vw;
    overflow-y: auto;
    overflow-x: hidden;
}

.full-page-container {
    display: flex;
    justify-content: center;
    align-items: stretch; /* Stretch content to fill height */
    width: 100%;
    min-height: 100vh;
    padding: 20px 0; /* Add vertical padding for the overall container if main-content-wrapper is shorter */
    box-sizing: border-box; /* Include padding in height calculation */
}

.main-content-wrapper {
    display: flex;
    width: 100%; /* Take full width of its parent */
    max-width: 1400px;
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    min-height: calc(100vh - 40px); /* Use total viewport height minus padding from full-page-container */
    align-items: stretch;
}

/* Left Panel - Now solely for your custom image as background */
.left-panel {
    flex: 1; /* Left panel takes remaining space */
    background-color: #0d47a1; /* Fallback color */
    background-size: cover; /* Cover the entire area */
    background-position: center center; /* Center the image */
    background-repeat: no-repeat; /* Do not repeat */
    display: flex; /* Still flex to stretch */
    align-items: stretch; /* Ensure it stretches vertically */
    padding: 0; /* No padding, image covers fully */
    box-sizing: border-box;
    position: relative;
    overflow: hidden; /* Important for clean edges */
}

/* Specific background images for login and register and forgot password */
.login-left-panel {
    background-image: url('path/to/your/login_background_image.jpg'); /* Your login page background image */
}

.register-left-panel {
    background-image: url('path/to/your/register_background_image.jpg'); /* Your register page background image */
}

.forgot-password-left-panel {
    background-image: url('path/to/your/forgot_password_background_image.jpg'); /* Your forgot password background image */
}

/* Right Panel - Exact Match Styling */
.right-panel {
    flex: 0 0 450px; /* Fixed width for right panel to match screenshot proportion */
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center; /* Center vertically within right panel */
    padding: 0; /* No padding here, padding is inside login-box */
    box-sizing: border-box;
}

.login-box { /* This class is used for login, register, and forgot password forms */
    width: 100%; /* Take full width of its parent (.right-panel) */
    max-width: 380px; /* Maximum width of the form content itself */
    background-color: #fff;
    padding: 25px 35px; /* Adjust padding to match visual spacing */
    text-align: center;
}

.login-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 10px;
}
.h9-campus-text {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 25px; /* Increased margin to separate from logo */
}

.login-title, .register-title { /* Removed text from HTML, but keep class for styling consistency */
    font-size: 1.6em; /* Removed text, so this will be unused visually but maintains space if content is added */
    margin-bottom: 0; /* No specific title text, so no margin here */
    color: #333;
}
.login-box .login-title { /* Specific for the "Forgot Password" title */
    margin-bottom: 25px;
}

.input-group {
    position: relative;
    margin-bottom: 15px; /* Tighter spacing for forms */
    text-align: left;
}

.input-group .icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 0.9em;
}

.input-group input {
    width: calc(100% - 50px);
    padding: 12px 12px 12px 45px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.95em;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.input-group input:focus {
    border-color: #0d47a1;
    outline: none;
    box-shadow: 0 0 0 2px rgba(13, 71, 161, 0.2);
}

.input-hint { /* For "Only Alphabets Allowed" */
    font-size: 0.8em;
    color: #777;
    margin-top: 5px;
    margin-left: 45px; /* Align with input text */
}

.login-button {
    width: 100%;
    padding: 12px 20px;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px; /* Space above button to match image */
}
.login-button:active {
    transform: translateY(1px);
}

/* Custom button styles to match images */
.custom-login-button {
    background-color: #0d47a1; /* Dark blue for login and forgot password */
    
}
.custom-login-button:hover {
    background-color: #0a3d8b;
}
.custom-register-button {
    background-color: #007bff; /* Blue for register */
}
.custom-register-button:hover {
    background-color: #0056b3;
}


/* Forgot password link alignment */
.forgot-password-section {
    text-align: right;
    margin-bottom: 15px; /* Space between link and button */
    font-size: 0.9em;
}
.forgot-password-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}
.forgot-password-link:hover {
    text-decoration: underline;
}

.forgot-password-instruction {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.5;
}

.create-account-section {
    margin-top: 15px; /* Adjust spacing to match image */
    text-align: right;
    font-size: 0.9em;
}

.back-to-login { /* For register.php "Already have an account?" link */
    margin-top: 15px; /* Align with create-account-section */
    text-align: center;
    font-size: 0.9em;
}
.back-to-login p {
    color: #555;
    margin: 0;
}

.create-account-link, .back-to-login a {
    color: #007bff; /* Blue link color */
    text-decoration: none;
    font-weight: 500;
}
.create-account-link:hover, .back-to-login a:hover {
    text-decoration: underline;
}

.contact-info {
    margin-top: 30px; /* Space before contact info */
    font-size: 0.8em;
    color: #666;
    line-height: 1.5;
    text-align: left;
    border-top: 1px solid #eee;
    padding-top: 20px;
}
.contact-info p {
    margin: 3px 0;
}
.contact-info a {
    color: #007bff;
    text-decoration: none;
}
.contact-info a:hover {
    text-decoration: underline;
}

/* Styles for messages */
.error-message {
    color: #d32f2f; /* Red */
    margin-bottom: 20px;
    font-size: 0.9em;
    text-align: left; /* Align error messages */
    padding: 10px;
    border: 1px solid #d32f2f;
    background-color: #ffebee; /* Light red background */
    border-radius: 5px;
}
.success-message {
    color: #4CAF50; /* Green */
    margin-bottom: 20px;
    font-size: 0.9em;
    text-align: left; /* Align success messages */
    padding: 10px;
    border: 1px solid #4CAF50;
    background-color: #e8f5e9; /* Light green background */
    border-radius: 5px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .main-content-wrapper {
        max-width: 1200px;
    }
    .right-panel { flex: 0 0 400px; } /* Slightly narrower on smaller screens */
    .login-box { max-width: 350px; padding: 20px 30px; }
}

@media (max-width: 768px) {
    .main-content-wrapper {
        flex-direction: column;
        width: 100%;
        box-shadow: none;
        border-radius: 0;
        margin: 0;
        min-height: auto;
    }

    .full-page-container {
        padding: 0; /* Remove padding for full-screen on mobile */
    }

    .left-panel {
        flex: auto;
        border-radius: 0;
        min-height: 250px; /* Ensure left panel has some height for image */
        width:200;
    }
    .right-panel {
        flex: auto;
        padding: 20px; /* Add back padding on mobile */
    }
    .login-box {
        max-width: 100%; /* Take full width on mobile */
        padding: 20px;
    }
    .h9-campus-text, .contact-info {
        text-align: center;
    }
}/* General Dashboard Layout */
/* ========== Base ========== */
*,
*::before,
*::after { box-sizing: border-box; }

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: 'Roboto', system-ui, -apple-system, Segoe UI, Arial, sans-serif;
    background-color: #eef2f5;
    color: #333;
    overflow: hidden; /* the dashboard itself controls scrolling */
}

/* ========== Dashboard shell ========== */
.dashboard-container {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100vh;            /* lock to viewport */
    background: #fff;
    box-shadow: 0 0 20px rgba(0,0,0,.1);
    overflow: hidden;         /* keep everything inside the box */
}

/* Top bar */
.top-navbar {
    flex: 0 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1a4a7e;
    color: #fff;
    padding: 14px 24px;
    box-shadow: 0 2px 5px rgba(0,0,0,.2);
    z-index: 10;
}

.navbar-left,
.navbar-right { display: flex; align-items: center; gap: 16px; }

.portal-name { font-size: 1.25rem; font-weight: 700; }

.menu-toggle {
    background: none; border: 0; color: #fff; font-size: 1.1rem;
    cursor: pointer; padding: 6px; border-radius: 6px;
}
.menu-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.application-status {
    font-size: .85rem; padding: 4px 10px; border-radius: 999px;
    display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
}
.status-approved { background: #28a745; color: #fff; }
.status-pending  { background: #ffc107; color: #222; }
.status-rejected { background: #dc3545; color: #fff; }

.user-email { font-size: .9rem; opacity: .9; }
.profile-pic {
    width: 36px; height: 36px; border-radius: 50%;
    object-fit: cover; border: 2px solid #fff; background: #e0e0e0;
}

/* Main area (sidebar + content) */
.main-content-area {
    flex: 1 1 auto;
    display: flex;
    min-height: 0;  /* important for inner scroll containers */
}

/* Sidebar */
.sidebar {
    width: 250px;
    flex: 0 0 250px;
    background: #fff;
    border-right: 1px solid #e9eef3;
    padding: 16px 0;
    overflow: auto;              /* sidebar scrolls independently */
    transition: width .25s ease;
}
.sidebar.collapsed { width: 64px; flex-basis: 64px; }

.application-info {
    padding: 0 20px 16px; font-size: .9rem; color: #556;
    border-bottom: 1px solid #eef2f5; margin-bottom: 12px;
}

.sidebar-nav ul { list-style: none; margin: 0; padding: 0; }
.sidebar-nav li a {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 20px; color: #2b3a4a; text-decoration: none; font-size: .95rem;
    border-left: 3px solid transparent;
}
.sidebar-nav li a .fas { width: 20px; text-align: center; font-size: 1.05rem; }
.sidebar-nav li a:hover,
.sidebar-nav li a.active {
    background: #e9f1f8; color: #1a4a7e; border-left-color: #1a4a7e;
}

.announcements-section {
    margin-top: 16px; padding-top: 14px; border-top: 1px solid #eef2f5;
}
.announcements-section h3 {
    font-size: .95rem; color: #1a4a7e; margin: 0 20px 8px; padding-bottom: 4px;
}

.bottom-nav { margin-top: auto; padding-top: 14px; border-top: 1px solid #eef2f5; }

/* Content panel (all pages render here) */
.content-panel {
    flex: 1 1 auto;
    min-width: 0;            /* prevent overflow from wide children */
    background: #f8f9fa;
    padding: 20px;
    overflow: auto;          /* the only scrolling area */
}

/* ========== Reusable page wrapper ========== */
/* Use this wrapper for form, challan, upload pages so they stay inside the panel */
.page-wrap {
    width: min(100%, 1100px);
    margin: 0 auto;
}

/* ========== Cards / sections ========== */
.application-card,
.challan-card,
.upload-challan-card,
.form-stage,
.agreement-box {
    background: #fff;
    border: 1px solid #e6ebf1;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,.06);
}

.application-card,
.challan-card { padding: 28px; }

.challan-container,
.upload-challan-container,
.application-main {
    padding: 0; /* outer padding comes from .content-panel */
}

.section-head { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid #eef2f5; }
.section-head h2 { font-size: 2rem; color: #1a4a7e; margin: 6px 0 12px; }
.section-head p { font-size: .95rem; color: #556; line-height: 1.6; margin: 0 0 10px; }

.section-kicker { font-size: .75rem; color: #7a8a9a; text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
.application-number { font-size: 1.05rem; color: #2b3a4a; font-weight: 600; margin: 10px 0 14px; }

.application-note {
    background: #fff8e1; border-left: 5px solid #ffc107;
    padding: 12px 14px; border-radius: 6px; font-size: .9rem; color: #5e4a03; margin-top: 16px;
}
.application-helper { font-size: .85rem; color: #6b7785; margin-top: 12px; }

.text-link { color: #1a4a7e; text-decoration: none; font-weight: 600; }
.text-link:hover { text-decoration: underline; }

.money-pill {
    display: inline-block; background: #e9f1f8; color: #1a4a7e;
    padding: 3px 8px; border-radius: 999px; font-weight: 600; font-size: .82rem;
}

/* ========== Form ========== */
.form-stage { padding: 22px; margin-bottom: 24px; }
.stage-head {
    display: flex; align-items: flex-start; gap: 14px;
    margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px dashed #e6ebf1;
}
.step-badge {
    width: 30px; height: 30px; border-radius: 50%;
    background: #1a4a7e; color: #fff; display: grid; place-items: center;
    font-size: .8rem; font-weight: 700; flex: 0 0 30px;
}
.stage-head h3 { font-size: 1.35rem; margin: 0 0 4px; color: #243447; }
.stage-head p { margin: 0; font-size: .85rem; color: #6b7785; }

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}
.field { display: flex; flex-direction: column; min-width: 0; }
.field-full { grid-column: 1 / -1; }

.field label { font-size: .9rem; color: #2b3a4a; margin-bottom: 8px; font-weight: 600; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field input[type="url"],
.field select,
.field textarea {
    width: 100%; max-width: 100%;
    padding: 10px 12px; border: 1px solid #cfd7e3; border-radius: 6px;
    font-size: .95rem; font-family: inherit; color: #243447; background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 90px; }

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: #1a4a7e; box-shadow: 0 0 0 3px rgba(26,74,126,.18); outline: none;
}

.field select {
    appearance: none; -webkit-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%23333" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>');
    background-repeat: no-repeat; background-position: right 10px center; padding-right: 34px;
}

.error-message { color: #dc3545; font-size: .8rem; margin-top: 6px; display: none; }
.error-message.is-visible { display: block; }

/* Agreement */
.agreement-box { padding: 22px; margin-bottom: 24px; }
.agreement-head { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px dashed #e6ebf1; }
.agreement-head h3 { font-size: 1.35rem; margin: 0 0 4px; color: #243447; }
.agreement-head p { margin: 0; font-size: .85rem; color: #6b7785; }

.checkbox-row { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; color: #2b3a4a; }
.checkbox-row input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; accent-color: #1a4a7e; }

/* Actions */
.form-actions { text-align: center; padding-top: 18px; border-top: 1px solid #eef2f5; }
.primary-button {
    background: #1a4a7e; color: #fff; border: 0; padding: 12px 22px;
    border-radius: 8px; font-size: 1.02rem; font-weight: 700; cursor: pointer;
    transition: transform .05s ease, background-color .15s, box-shadow .15s;
}
.primary-button:hover { background: #153b65; box-shadow: 0 6px 14px rgba(0,0,0,.12); }
.primary-button:active { transform: translateY(1px); }
.primary-button:focus-visible { outline: 3px solid rgba(26,74,126,.35); outline-offset: 2px; }
.form-footnote { font-size: .8rem; color: #6b7785; margin-top: 10px; }

/* ========== Challan / Upload ========== */
.challan-header { text-align: center; margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid #eef2f5; }
.challan-header h2 { font-size: 2.2rem; color: #1a4a7e; margin: 0 0 6px; }
.challan-details p, .payment-instructions p, .bank-details p {
    font-size: 1rem; color: #2b3a4a; line-height: 1.6; margin: 0 0 10px;
}
.challan-details p strong { color: #1a4a7e; display: inline-block; min-width: 160px; }

.payment-instructions, .bank-details {
    margin-top: 24px; padding-top: 16px; border-top: 1px dashed #e6ebf1;
}
.payment-instructions h3, .bank-details h3 { font-size: 1.25rem; color: #1a4a7e; margin: 0 0 10px; }
.payment-instructions ul { list-style: decimal; padding-left: 22px; margin: 10px 0 16px; }
.payment-instructions li { margin-bottom: 6px; color: #4a5a6a; font-size: .95rem; }

.upload-challan-card { padding: 28px; text-align: center; max-width: 680px; margin: 0 auto; }
.upload-challan-card .challan-details { margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px dashed #e6ebf1; }
.upload-challan-card .field label { font-size: 1.05rem; font-weight: 700; color: #1a4a7e; display: block; margin-bottom: 12px; }
.upload-challan-card input[type="file"] {
    display: block; margin: 0 auto; padding: 10px; border: 1px solid #cfd7e3;
    border-radius: 6px; width: max-content; background: #f3f7fb; cursor: pointer;
}
.upload-challan-card input[type="file"]::file-selector-button {
    background: #1a4a7e; color: #fff; border: 0; padding: 8px 14px; border-radius: 6px; cursor: pointer; margin-right: 10px;
}
.upload-challan-card input[type="file"]::file-selector-button:hover { background: #153b65; }

.success-message, .error-message {
    margin: 14px auto; padding: 10px 12px; border-radius: 6px; max-width: 680px; font-weight: 600;
}
.success-message { color: #0f5132; background: #d1e7dd; border: 1px solid #badbcc; }
.error-message   { color: #842029; background: #f8d7da; border: 1px solid #f5c2c7; }

/* ========== Images / Media inside content ========== */
.main-campus-image { width: 100%; height: auto; display: block; border-radius: 10px; box-shadow: 0 4px 10px rgba(0,0,0,.08); }

/* ========== Responsive ========== */
@media (max-width: 992px) {
    .sidebar { width: 220px; flex-basis: 220px; }
}
@media (max-width: 768px) {
    .top-navbar { padding: 10px 14px; flex-wrap: wrap; row-gap: 8px; }
    .navbar-left { width: 100%; justify-content: space-between; }
    .portal-name { font-size: 1.1rem; }
    .application-status { font-size: .8rem; padding: 3px 8px; }

    .main-content-area { flex-direction: column; }
    .sidebar {
        width: 100%; flex-basis: auto; max-height: 45vh; border-right: 0;
        border-bottom: 1px solid #e9eef3; box-shadow: none;
    }
    .sidebar.collapsed { width: 100%; }
    .content-panel { padding: 14px; }
    .application-card, .challan-card, .upload-challan-card { padding: 18px; }
    .section-head h2 { font-size: 1.6rem; }
}
@media (max-width: 480px) {
    .user-email { display: none; }
    .navbar-right { gap: 10px; }
    .primary-button { width: 100%; }
}

/* ========== Print ========== */
@media print {
    body { background: #fff; overflow: visible; }
    .top-navbar, .sidebar, .form-actions, .menu-toggle { display: none !important; }
    .dashboard-container { box-shadow: none; height: auto; }
    .content-panel { overflow: visible; padding: 0; background: #fff; }
    .challan-card, .application-card { box-shadow: none; border: 0; padding: 0; }
}