html {
    overflow-y: scroll !important;
}
body {
    background-color: #f8f9fa !important;
    background-attachment: fixed;
    background-size: cover;
    display: flex;
    flex-direction: column;
    height: 100vh;
    margin: 0;
    padding: 0;
    justify-content: flex-start;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;

}


.content-container {
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}
body.modal-open {
    overflow: hidden;
    padding-right: 0 !important;
}

.navbar-custom {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid #e9ecef;
    height: 70px;
    min-height: 70px;
    padding: 0 20px;
}

.navbar-custom .navbar-brand {
    font-size: 32px;
    font-weight: 600;
    color: #2c3e50;
    padding-left: 5px;
}

.navbar-brand img {
    height: 50px;
    width: auto;
    border-radius: 8px;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.navbar-nav .nav-link {
    color: #495057;
    font-weight: 500;
    font-size: 14px;
    padding: 12px 20px;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link:hover {
    color: #0066cc;
    background-color: #f8f9fa;
}

.navbar-nav .nav-link.active {
    color: #0066cc;
    background-color: #e7f3ff;
}

.navbar-nav .nav-link svg {
    margin-right: 8px;
    vertical-align: middle;
}


.navbar-nav .dropdown {
    position: relative;
}

.navbar-nav .dropdown-menu {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    margin-top: 0;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.navbar-nav .dropdown-item {
    padding: 10px 20px;
    color: #495057;
    transition: all 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
}

.navbar-nav .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #0066cc;
}

.navbar-nav .dropdown-item:focus {
    background-color: #f8f9fa;
    color: #0066cc;
    outline: none;
}

@media (min-width: 992px) {

    .navbar-nav .dropdown:hover .dropdown-menu,
    .navbar-nav .dropdown-menu:hover {
        display: block !important;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    

    .navbar-nav .dropdown::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: 4px;
        background: transparent;
        z-index: 999;
    }
}

.navbar-toggler {
    border: none;
    outline: none;
    padding: 8px 12px;
    border-radius: 8px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.2);
}

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


.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-header {
    background-color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
    font-size: 14px;
    padding: 16px 20px;
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

/* Enhanced Buttons */
.btn {
    border-radius: 10px;
    font-weight: 500;
    font-size: 14px;
    padding: 10px 20px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background-color: #0066cc;
    border-color: #0066cc;
    color: white;
}

.btn-primary:hover {
    background-color: #0052a3;
    border-color: #0052a3;
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: #0066cc;
    border-color: #0066cc;
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: #0066cc;
    border-color: #0066cc;
    color: white;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.btn-outline-success {
    color: #28a745;
    border-color: #28a745;
}

.btn-outline-success:hover {
    background-color: #28a745;
    color: white;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

.btn-outline-danger {
    color: #dc3545;
    border-color: #dc3545;
}

.btn-outline-danger:hover {
    background-color: #dc3545;
    color: white;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

.btn-outline-secondary {
    color: #6c757d;
    border-color: #6c757d;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    color: white;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}


.alert {
    border: none;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    word-wrap: break-word;
    word-break: normal;
    overflow-wrap: break-word;
}
.alert p {
    margin-bottom: 0.5rem;
    overflow-wrap: break-word;
    white-space: pre-wrap;
}



.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* Enhanced Forms */
.form-control {
    border-radius: 10px;
    border: 1px solid #ced4da;
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.input-group-text {
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 10px;
    padding: 12px 16px;
    color: #6c757d;
    font-weight: 500;
}

/* Enhanced Modals */
.modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    padding: 24px 30px 20px;
    border-radius: 20px 20px 0 0;
}

.modal-title {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.25rem;
}

.modal-body {
    padding: 20px 30px;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 20px 30px 24px;
    border-radius: 0 0 20px 20px;
}

.btn-close {
    border-radius: 50%;
    padding: 8px;
    opacity: 0.6;
}

.btn-close:hover {
    opacity: 1;
}


.table {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.table th {
    background-color: #f8f9fa;
    color: #495057;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px;
    border-bottom: 2px solid #e9ecef;
}

.table td {
    padding: 16px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f3f4;
}

.table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: #fbfcfd;
}

.table-hover > tbody > tr:hover > td {
    background-color: #f8f9fa;
}

h1, h2, h3 {
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

h2 {
    font-size: 2rem;
    margin-bottom: 25px;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}


.mb-custom {
    margin-bottom: 30px;
}

.mt-custom {
    margin-top: 30px;
}


@media screen and (max-width: 1200px) {
    .content-container {
        padding: 30px 15px;
    }
    
    .navbar-items-container {
        padding: 0 15px; 
    }
    
    .navbar-nav {
        gap: 30px;
    }
}

@media screen and (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .navbar-custom {
        min-height: 70px;
        padding: 10px 15px;
    }

    .navbar-items-container {
        padding: 0; 
    }

    .navbar-nav {
        margin-left: 0;
        justify-content: center;
        gap: 15px;
        flex-direction: column;
        width: 100%;
    }

    .navbar-nav .nav-link {
        padding: 10px 15px;
        text-align: center;
        width: 100%;
    }

    .navbar-nav .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        margin-top: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .content-container {
        padding: 20px 15px;
    }

    .card-title {
        font-size: 2rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .modal-dialog {
        margin: 20px;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 20px;
    }
}

@media screen and (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .navbar-custom {
        min-height: 60px;
        padding: 8px 15px;
    }

    .content-container {
        max-width: 1400px;
        padding: 15px 10px;
        margin: 0 auto;
        width: 100%;
        overflow-x: hidden; 
    }

    .navbar-items-container {
        padding: 0; 
    }

    .card-title {
        font-size: 1.8rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    h3 {
        font-size: 1.4rem;
    }
}