/**
 * @Author: Your name
 * @Date:   2025-08-15 13:02:26
 * @Last Modified by:   Your name
 * @Last Modified time: 2025-08-15 13:12:24
 */
/**
 * @Author: Your name
 * @Date:   2025-08-15 13:02:26
 * @Last Modified by:   Your name
 * @Last Modified time: 2025-08-15 13:12:23
 */
/* Updated CSS for BLAS Website - Based on Official BLAS Site */

/* Global Variables - Government Theme */
:root {
    --primary-color: #0A4B78;
    /* Deep government blue */
    --secondary-color: #165A8A;
    /* Accent blue */
    --accent-color: #FF6B00;
    /* Saffron accent for highlights */
    --success-color: #2B8A3E;
    /* Green for success */
    --warning-color: #FD7E14;
    /* Orange for warnings */
    --danger-color: #C92A2A;
    /* Red for errors */
    --button-gradient: linear-gradient(135deg, #0A4B78, #165A8A);
    /* Government blue gradient */
    --header-gradient: linear-gradient(135deg, #0A4B78, #1864AB);
    /* Header gradient */
    --dark-text: #212529;
    --light-text: #ffffff;
    --govt-gray: #6C757D;
    --light-bg: #F8F9FA;
    --card-bg: #ffffff;
    --border-color: #DEE2E6;
    --border-radius: 6px;
    --box-shadow: 0 4px 15px rgba(10, 75, 120, 0.1);
    --card-shadow: 0 8px 25px rgba(10, 75, 120, 0.15);
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif !important;
    background: linear-gradient(135deg, #F8F9FA 0%, #E9ECEF 100%) !important;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    color: var(--dark-text);
    line-height: 1.6;
    position: relative;
}

/* Government Badge Pattern Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(10, 75, 120, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(22, 90, 138, 0.02) 0%, transparent 50%),
        linear-gradient(135deg, transparent 0%, rgba(10, 75, 120, 0.01) 100%);
    pointer-events: none;
    z-index: -1;
}

/* Navigation Styles - Government Header */
.navbar {
    background: var(--header-gradient) !important;
    padding: 0.75rem 0;
    box-shadow: 0 4px 20px rgba(10, 75, 120, 0.2);
    border-bottom: 3px solid var(--accent-color);
    position: relative;
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        var(--accent-color) 0%, 
        var(--success-color) 33%, 
        var(--light-text) 66%, 
        var(--success-color) 100%);
}

.navbar-brand {
    padding: 0;
    display: flex;
        align-items: center;
}

.pol_logo {
    height: 90px;
    max-width: 100%;
    object-fit: contain;
}

.logo_txt {
    line-height: 1.3;
    display: block;
}

/* Main Content Styles */
.container {
    padding-top: 2rem;
}

/* Page Title - Government Style */
h6.text-center {
    font-size: 1.3rem;
    line-height: 1.4;
    margin-bottom: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--card-bg) 0%, #F8F9FA 100%);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border-left: 5px solid var(--accent-color);
    border-top: 1px solid var(--border-color);
    position: relative;
}

h6.text-center::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color), var(--accent-color));
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

/* Form Container - Government Card Style */
.bg-light {
    background: var(--card-bg) !important;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
    margin: 0 1rem;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.bg-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--header-gradient);
}

.bg-light::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(10, 75, 120, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Form Styles - Government Input Design */
.form-control {
    height: 52px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #FAFBFC;
    position: relative;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(10, 75, 120, 0.1);
    outline: none;
    background: var(--card-bg);
    transform: translateY(-1px);
}

.form-control.valid {
    border-color: var(--success-color);
    background: linear-gradient(135deg, #F8FFF9 0%, #F1F8E9 100%);
}

.form-control.error {
    border-color: var(--danger-color);
    background: linear-gradient(135deg, #FFF5F5 0%, #FFEBEE 100%);
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Input Labels - Government Style */
label.fw-bold {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--dark-text);
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 13px;
    position: relative;
}

label.fw-bold::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-color);
}

/* Small Helper Text */
small.text-muted {
    font-size: 12px;
        line-height: 1.4;
        margin-bottom: 0.5rem;
    display: block;
    color: #666;
}

/* Date Picker Styles */
.date_view {
    cursor: pointer;
    background-color: #fff;
}

/* Button Styles - Government Design */
.btn {
    font-weight: 600;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    border-radius: var(--border-radius);
    padding: 0.875rem 2rem;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-info {
    background: var(--button-gradient);
    border: 2px solid var(--primary-color);
    color: var(--light-text);
    box-shadow: 0 4px 15px rgba(10, 75, 120, 0.3);
}

.btn-info:hover {
    background: linear-gradient(135deg, #0D3B66, var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(10, 75, 120, 0.4);
    color: var(--light-text);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #37B24D) !important;
    border: 2px solid var(--success-color) !important;
    color: var(--light-text);
    box-shadow: 0 4px 15px rgba(43, 138, 62, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #2B8A3E, var(--success-color)) !important;
    border-color: #2B8A3E !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(43, 138, 62, 0.4);
    color: var(--light-text);
}

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

.btn i {
    font-size: 1.1em;
}

/* Button Grid */
.d-grid {
    gap: 0.75rem;
}

/* Alert Styles - Government Design */
.alert {
    border-radius: var(--border-radius);
    border: none;
    font-size: 14px;
    padding: 1rem 1.25rem;
    font-weight: 500;
    position: relative;
    border-left: 4px solid;
}

.alert-info {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(10, 75, 120, 0.1);
}

.alert-success {
    background: linear-gradient(135deg, #E8F5E8 0%, #C8E6C9 100%);
    color: var(--success-color);
    border-left-color: var(--success-color);
    box-shadow: 0 4px 15px rgba(43, 138, 62, 0.1);
}

.alert-danger {
    background: linear-gradient(135deg, #FFEBEE 0%, #FFCDD2 100%);
    color: var(--danger-color);
    border-left-color: var(--danger-color);
    box-shadow: 0 4px 15px rgba(201, 42, 42, 0.1);
}

.alert i {
    font-size: 1.1em;
}

/* Error Styles */
input.error,
select.error,
textarea.error {
    border: 1px solid #f30000 !important;
    background-color: #fff5f5;
}

label.error {
    color: var(--danger-color);
    font-size: 13px;
    margin-top: 0.25rem;
    display: block;
    font-weight: 500;
    font-style: italic;
}

/* Page Loader */
.pageloader {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: rgba(249, 249, 249, 0.8);
    backdrop-filter: blur(2px);
}

.pageloader::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #EC6E15;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Text Styles */
.text-danger {
    color: #f30000 !important;
}

.text-uppercase {
    text-transform: uppercase;
}

/* Help Section */
.note {
    font-size: 14px;
    line-height: 1.5;
}

.note strong {
    font-weight: 600;
}

/* Footer */
.container-fluid p {
    margin: 0;
    font-size: 14px;
    color: #6c757d;
}

/* Mobile Responsiveness - Government Style */
@media only screen and (max-width: 767.98px) {
    .pol_logo {
        height: 65px;
    }

    .govt-emblem {
        width: 35px;
        height: 35px;
        top: 8px;
        right: 15px;
    }

    .govt-emblem::before {
        font-size: 20px;
    }

    .navbar-nav span {
        font-size: 14px !important;
        line-height: 1.3;
    }

    .logo_txt.fs-5 {
        font-size: 16px !important;
    }
    
    .navbar-brand {
        margin-right: 0.75rem !important;
    }

    h6.text-center {
        font-size: 1.1rem !important;
        padding: 1.25rem !important;
        line-height: 1.4;
    }

    .container {
        padding-top: 1rem;
    }

    .bg-light {
        margin: 0 0.5rem;
        padding: 1.5rem;
    }

    .official-notice {
        margin: 10px 0;
        padding: 10px;
        font-size: 12px;
    }

    .note {
        font-size: 13px;
    }
    
    .navbar {
        padding: 0.75rem 0;
    }

    .alert {
        font-size: 13px;
        padding: 0.75rem;
    }

    .form-control {
        height: 48px;
        font-size: 15px;
    }

    .btn {
        font-size: 14px;
        padding: 0.75rem 1.5rem;
    }
}

@media only screen and (max-width: 575.98px) {
    .pol_logo {
        height: 55px;
    }

    .smj_logo {
        display: none !important;
    }

    .navbar-nav span {
        font-size: 13px !important;
        line-height: 1.2;
    }

    .logo_txt.fs-5 {
        font-size: 14px !important;
    }

    h6.text-center {
        font-size: 0.9rem !important;
        padding: 0.75rem !important;
        line-height: 1.4;
    }

    .form-control {
        font-size: 14px;
        padding: 0.6rem;
        height: 42px;
    }

    .btn-info {
        font-size: 14px;
        padding: 0.6rem 1.2rem;
    }
    
    /* Better container spacing for small phones */
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .bg-light {
        margin: 0 0.25rem;
        padding: 0.75rem;
    }
    
    /* Improved navbar spacing for small screens */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        margin-right: 0.5rem !important;
    }

    .note {
        font-size: 11px;
    }

    .container-fluid p {
        font-size: 12px;
    }
}

/* Animation for form submission */
.form-submitting {
    opacity: 0.7;
    pointer-events: none;
}

.form-submitting .btn-info {
    position: relative;
}

.form-submitting .btn-info::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Success and Error Messages */
.alert {
    border-radius: 6px;
    margin-top: 1rem;
    font-size: 14px;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Custom scrollbar for date picker */
.ui-datepicker {
    font-family: 'Poppins', sans-serif !important;
    font-size: 12px !important;
}

/* Datepicker Customization */
.ui-datepicker {
    padding: 10px;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    background-color: #fff;
    font-family: 'Poppins', sans-serif !important;
    font-size: 12px !important;
}

.ui-datepicker .ui-datepicker-header {
    background-color: var(--secondary-color);
    border: none;
    color: var(--light-text);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.ui-datepicker th {
    color: var(--dark-text);
}

.ui-datepicker .ui-state-default {
    background: #f6f6f6;
    border: 1px solid #ddd;
    color: var(--dark-text);
    text-align: center;
}

.ui-datepicker .ui-state-highlight {
    background-color: #e8f4ff;
    color: var(--dark-text);
    border-color: #bde0fe;
}

.ui-datepicker .ui-state-active {
    background-color: var(--secondary-color);
    color: var(--light-text);
    border-color: var(--secondary-color);
}

/* Helper Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.text-danger {
    color: #f30000 !important;
}

/* Help text */
.note.text-center {
    background-color: #fff9f2;
    border: 1px solid #ffecd9;
    border-radius: 4px;
    padding: 10px;
    margin-top: 2rem;
}

.alert-info {
    background-color: #e8f4ff;
    border-color: #bde0fe;
    color: #0c5460;
}

/* Loader */
.pageloader {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color: rgba(255, 255, 255, 0.9) !important;
}

/* Footer text */
.container-fluid p {
    font-size: 14px;
    color: #555;
}

/* Focus outline for accessibility */
:focus {
    outline: 2px solid rgba(236, 110, 21, 0.5);
    outline-offset: 1px;
}
/* Print Styles */
@media print {
    .navbar,
    .note,
    .container-fluid {
        display: none !important;
    }

    body {
        background: white !important;
    }

    .pageloader {
        display: none !important;
    }
}
