body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
}

body.login-page {
    overflow: hidden;
}


body.logged-in {
    overflow: auto;
}

#login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-image: url('uploads/login-background.webp'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    position: relative;
}

#login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 73, 157, 0.3);
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px); 
    z-index: 1;
}

.login-container {
    position: relative;
    z-index: 2; 
}

.login-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    min-height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.login-form-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
}

.login-logo-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.logo-container {
    text-align: center;
    color: white;
}

.bpbd-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.logo-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.logo-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#login-page .bg-white {
    background-color: rgba(255, 255, 255, 0.95) !important; 
    color: #333; 
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 100%;
    max-width: 400px;
}

#login-page h2 {
    color: #e60013; 
    font-weight: bold;
}

#login-page .btn-primary {
    background-color: #00499d; 
    border-color: #00499d;
}

#login-page .btn-primary:hover {
    background-color: #003d7a; 
    border-color: #003d7a;
}

#login-page .form-label {
    color: #333; 
}

.welcome-section {
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.welcome-icon {
    color: #00499d;
}

.welcome-title {
    color: #00499d;
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.welcome-subtitle {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.welcome-tagline {
    color: #e60013;
    font-style: italic;
    font-size: 0.85rem;
    font-weight: 500;
}

.bpbd-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-left: 4px solid #00499d;
    position: relative;
}

.bpbd-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 73, 157, 0.05) 0%, rgba(230, 0, 19, 0.05) 50%, rgba(239, 130, 0, 0.05) 100%);
    border-radius: inherit;
    z-index: 0;
}

.bpbd-header > .d-flex {
    position: relative;
    z-index: 1;
}

.header-logo {
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-bpbd-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.btn-bpbd-primary {
    background-color: #00499d;
    border-color: #00499d;
    color: white;
    transition: all 0.3s ease;
}

.btn-bpbd-primary:hover {
    background-color: #0066cc;
    border-color: #0066cc;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 73, 157, 0.3);
}

.btn-bpbd-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
    transition: all 0.3s ease;
}

.btn-bpbd-secondary:hover {
    background-color: #7a8288;
    border-color: #7a8288;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.bg-white {
    background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%) !important;
    border: 1px solid rgba(0, 73, 157, 0.1);
    transition: all 0.3s ease;
}

.bg-white:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.table thead th {
    background: linear-gradient(135deg, #00499d 0%, #0066cc 100%);
    color: white;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

.table tbody tr:hover {
    background-color: rgba(0, 73, 157, 0.05);
}

.form-control:focus {
    border-color: #00499d;
    box-shadow: 0 0 0 0.2rem rgba(0, 73, 157, 0.25);
}

.form-select:focus {
    border-color: #00499d;
    box-shadow: 0 0 0 0.2rem rgba(0, 73, 157, 0.25);
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        min-height: auto;
    }

    .login-form-section,
    .login-logo-section {
        flex: none;
        padding: 20px;
    }

    .login-logo-section {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

    .bpbd-logo {
        width: 80px;
        height: 80px;
    }

    .logo-title {
        font-size: 1.2rem;
    }

    .logo-subtitle {
        font-size: 1rem;
    }
}

#preview-modal .modal-dialog {
    max-width: 210mm;
    height: 297mm; 
}
#preview-modal .modal-content {
    height: 100%;
    overflow: auto;
}

.pagination .page-item.active .page-link,
.pagination .page-item.active .page-link:hover {
    background-color: #2e308a;
    border-color: #2e308a;
    color: #fff; 
}

.pagination .page-item.active .page-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(46, 48, 138, 0.5);
}

.pagination .page-item .page-link {
    color: #2e308a;
}

.pagination .page-item .page-link:hover {
    color: #1a1c52; 
}


::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background-color: transparent;
}
::-webkit-scrollbar-thumb {
    background-color: transparent;
    border-radius: 10px;
}

body:hover::-webkit-scrollbar-thumb,
.table-responsive:hover::-webkit-scrollbar-thumb,
.modal:hover::-webkit-scrollbar-thumb {
    background-color: rgba(150, 150, 150, 0.5);
}
::-webkit-scrollbar-thumb:hover {
    background-color: rgba(100, 100, 100, 0.8) !important;
}

.table-responsive {
    overflow-x: auto;
}