:root {
    --primary-color: rgba(10, 17, 142, 1);
    --primary-dark: rgba(8, 14, 115, 1);
    --primary-light: rgba(15, 25, 180, 1);
    --secondary-color: rgba(10, 17, 142, 0.1);
    --accent-color: rgba(10, 17, 142, 0.8);
}

body {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.main-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.main-header .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

.main-header .navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 1) !important;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}


.main-sidebar {
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    box-shadow: 2px 0 6px rgba(0,0,0,.1);
}

.brand-link {
    background: var(--primary-color) !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.brand-link:hover {
    background: var(--primary-dark) !important;
}

.brand-text {
    color: #fff !important;
    font-weight: 600;
    font-size: 1.1rem;
}

.nav-sidebar .nav-item > .nav-link {
    border-radius: 6px;
    margin: 2px 8px;
    transition: all 0.3s ease;
}

.nav-sidebar .nav-item > .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.nav-sidebar .nav-item > .nav-link.active {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(10, 17, 142, 0.3);
}

.nav-sidebar .nav-item > .nav-link.active i {
    color: #fff !important;
}

.nav-header {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 15px;
    margin-top: 10px;
}

.content-wrapper {
    background-color: #f4f6f9;
}

.content-header {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-bottom: 2px solid var(--secondary-color);
    padding: 1rem 30px;
    margin-bottom: 30px;
}

.content-header h1 {
    color: var(--primary-color);
    font-weight: 600;
}

.breadcrumb {
    background-color: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
}

.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

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

.card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-radius: 8px 8px 0 0 !important;
    font-weight: 600;
    padding: 12px 20px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 6px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(10, 17, 142, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(10, 17, 142, 0.3);
}

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

.small-box {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.small-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.small-box .inner h3 {
    font-weight: 700;
    font-size: 2.5rem;
}

.small-box .icon {
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.small-box:hover .icon {
    opacity: 0.5;
}

.small-box.bg-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%) !important;
}

.small-box.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%) !important;
}

.small-box.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%) !important;
}

.small-box.bg-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
}

.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
}

.table thead th {
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 12px 15px;
}

.table tbody tr {
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: var(--secondary-color);
}

.badge {
    border-radius: 4px;
    padding: 4px 8px;
    font-weight: 500;
}

.badge-info {
    background-color: var(--primary-color);
}

.dropdown-menu {
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    margin-top: 5px;
}

.dropdown-item {
    padding: 8px 16px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.main-footer {
    background: #fff;
    border-top: 2px solid var(--secondary-color);
    padding: 15px;
    color: #6c757d;
    font-weight: 500;
}

.login-page {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-box {
    width: 100%;
    max-width: 400px;
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo b {
    color: #fff !important;
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.login-logo {
    color: #fff !important;
}

.login-card-body {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    padding: 30px;
}

.login-box-msg {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.form-control {
    border-radius: 6px;
    border: 2px solid #e0e0e0;
    padding: 10px 15px;
    transition: all 0.3s ease;
    color: #495057 !important;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(10, 17, 142, 0.15);
    color: #495057 !important;
}

.form-control option {
    color: #495057 !important;
    background-color: #fff !important;
}

select.form-control {
    color: #495057 !important;
    background-color: #fff !important;
}

select.form-control option {
    color: #495057 !important;
    background-color: #fff !important;
}

select.form-control-sm {
    color: #495057 !important;
    background-color: #fff !important;
    padding: 6px 12px !important;
}

select.form-control-sm option {
    color: #495057 !important;
    background-color: #fff !important;
}

.input-group-text {
    background-color: var(--secondary-color);
    border: 2px solid #e0e0e0;
    border-right: none;
    color: var(--primary-color);
}

.input-group .form-control {
    border-left: none;
}

.input-group .form-control:focus + .input-group-append .input-group-text,
.input-group .form-control:focus ~ .input-group-append .input-group-text {
    border-color: var(--primary-color);
}

.alert {
    border-radius: 6px;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.preloader {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.navbar-white {
    background-color: transparent !important;
}

.navbar-light .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

.navbar-light .navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 1);
}

.select2-container--bootstrap4 .select2-selection {
    border: 2px solid #e0e0e0 !important;
    border-radius: 6px !important;
    min-height: 38px !important;
}

.select2-container--bootstrap4 .select2-selection--multiple {
    min-height: 38px !important;
    padding: 2px 5px !important;
}

.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice {
    background-color: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 4px !important;
    padding: 3px 8px !important;
    margin: 3px 3px 3px 0 !important;
    color: #495057 !important;
    font-size: 0.875rem !important;
}

.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice__remove {
    color: #6c757d !important;
    margin-right: 5px !important;
    font-weight: bold !important;
}

.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #dc3545 !important;
}

.select2-container--bootstrap4 .select2-search--inline .select2-search__field {
    margin-top: 3px !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
}

.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__rendered {
    padding: 0 !important;
}

.select2-container--bootstrap4.select2-container--focus .select2-selection {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(10, 17, 142, 0.15) !important;
}

.select2-dropdown {
    border: 2px solid #e0e0e0 !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.select2-results__option {
    padding: 8px 12px !important;
}

.select2-results__option--highlighted {
    background-color: var(--secondary-color) !important;
    color: var(--primary-color) !important;
}

@media (max-width: 768px) {
    .main-sidebar {
        transform: translateX(-100%);
    }
    
    .content-wrapper {
        margin-left: 0 !important;
    }
}

