/* Custom Modern Theme for MOBEDS Remedial Coaching System */
:root {
    --primary-color: #0d9488;
    --primary-dark: #0f766e;
    --primary-light: #2dd4bf;
    --secondary-color: #4f46e5;
    --dark-bg: #0f172a;
    --dark-card: #1e293b;
    --light-bg: #f8fafc;
    --text-main: #1e293b;
    --border-color: #e2e8f0;
}

html, body {
    height: 100%;
    overflow-x: hidden !important;
    width: 100% !important;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f1f5f9;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Glassmorphism Navbar */
.navbar-custom {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.navbar-custom .navbar-brand {
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.navbar-custom .nav-link {
    color: #94a3b8;
    font-weight: 500;
    transition: all 0.2s ease;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: #38bdf8;
}

/* Header Banner */
.gov-header-banner {
    background: linear-gradient(135deg, #0b1329 0%, #1e1b4b 50%, #064e3b 100%);
    color: #ffffff;
    padding: 3rem 0;
    border-bottom: 5px solid #f59e0b;
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* Form Card Styling */
.card-form {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    background: #ffffff;
    overflow: hidden;
}

.card-form-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 1.25rem 1.75rem;
}

.card-form-body {
    padding: 2rem;
}

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

.form-control:focus, .form-select:focus {
    border-color: #0d9488;
    box-shadow: 0 0 0 0.25rem rgba(13, 148, 136, 0.15);
}

/* Document Upload Box */
.upload-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    background: #f8fafc;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-zone:hover {
    border-color: #0d9488;
    background: #f0fdf4;
}

/* Official Receipt & Report Print Styling */
@media print {
    @page {
        size: A4 landscape;
        margin: 10mm;
    }
    body {
        background: #ffffff !important;
        color: #000000 !important;
        font-size: 11pt;
        display: block !important;
    }
    .no-print, nav, footer, .btn, .d-flex.justify-content-between.align-items-center.mb-4 {
        display: none !important;
    }
    .container {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .card {
        border: none !important;
        box-shadow: none !important;
    }
    .card-form-header {
        background: #f1f5f9 !important;
        color: #000000 !important;
        border-bottom: 2px solid #000000 !important;
        padding: 10px 0 !important;
    }
    .card-form-header h6 {
        color: #000000 !important;
        font-size: 14pt !important;
    }
    .table {
        width: 100% !important;
        border-collapse: collapse !important;
        margin-top: 15px !important;
    }
    .table th, .table td {
        border: 1px solid #000000 !important;
        padding: 6px 8px !important;
        color: #000000 !important;
        font-size: 9pt !important;
    }
    .table thead th {
        background-color: #e2e8f0 !important;
        color: #000000 !important;
        font-weight: bold !important;
    }
/* Mobile View Responsiveness & Touch Optimization */
@media (max-width: 991.98px) {
    .navbar > .container {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    .navbar .navbar-brand {
        min-width: 0 !important;
        flex: 1 1 auto !important;
        margin-right: 0.5rem !important;
    }
    .navbar .navbar-brand div {
        min-width: 0 !important;
        overflow: hidden !important;
    }
    .navbar .navbar-brand span {
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        display: block !important;
    }
    .navbar .navbar-toggler {
        flex-shrink: 0 !important;
        padding: 4px 8px !important;
    }
    .navbar-collapse {
        flex-basis: 100% !important;
        width: 100% !important;
        background: #020617 !important;
        padding: 1rem !important;
        border-radius: 0.75rem !important;
        margin-top: 0.5rem !important;
        border: 1px solid #1e293b !important;
    }
    .gov-header-banner {
        padding: 2rem 0.75rem !important;
    }
    .gov-header-banner h1 {
        font-size: 1.65rem !important;
        line-height: 1.3 !important;
    }
    .gov-header-banner h3 {
        font-size: 1.25rem !important;
    }
    .gov-header-banner p.lead {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
    }
    .gov-header-banner .badge {
        font-size: 0.75rem !important;
        white-space: normal !important;
        line-height: 1.4 !important;
    }
    .gov-header-banner .btn {
        width: 100% !important;
        padding: 0.85rem 1rem !important;
        font-size: 1rem !important;
    }
    .hero-btn-container {
        flex-direction: column !important;
        width: 100% !important;
    }
    .card-form-body {
        padding: 1.25rem !important;
    }
    .table-responsive {
        border: 0 !important;
    }
}
