/* ========== NAVBAR STYLING ========== */
.main-header.navbar {
    background: linear-gradient(135deg, #ffffff 0%, #f5f7fa 100%) !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08) !important;
    border-bottom: 1px solid rgba(0, 83, 48, 0.1) !important;
    transition: all 0.3s ease;
}

.main-header .nav-link {
    color: #2c3e50 !important;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 4px;
    position: relative;
}

.main-header .nav-link:hover {
    background-color: rgba(0, 83, 48, 0.08) !important;
    transform: translateY(-2px);
}

.main-header .nav-link i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.main-header .nav-link:hover i {
    transform: scale(1.15);
}

/* Badge Styling */
.navbar-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 6px;
    font-size: 0.65rem;
    font-weight: 700;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Dropdown Menu Styling */
.dropdown-menu {
    border: none !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
    border-radius: 12px !important;
    padding: 8px !important;
    margin-top: 8px !important;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    border-radius: 8px !important;
    padding: 12px 16px !important;
    margin: 4px 0 !important;
    transition: all 0.3s ease !important;
    border-left: 3px solid transparent !important;
}

.dropdown-item:hover {
    background-color: rgba(0, 83, 48, 0.08) !important;
    border-left-color: #F8C722 !important;
    transform: translateX(5px);
    color: #005330 !important;
}

.dropdown-header {
    font-weight: 700 !important;
    color: #005330 !important;
    padding: 12px 16px !important;
    background: linear-gradient(135deg, rgba(0, 83, 48, 0.05) 0%, rgba(248, 199, 34, 0.05) 100%);
    border-radius: 8px !important;
    margin-bottom: 8px !important;
}

.dropdown-footer {
    font-weight: 600 !important;
    text-align: center !important;
    color: #005330 !important;
    background: rgba(248, 199, 34, 0.1) !important;
    border-radius: 8px !important;
    margin-top: 8px !important;
}

.dropdown-footer:hover {
    background: rgba(248, 199, 34, 0.2) !important;
}

/* User Dropdown */
.main-header .nav-item.dropdown > .nav-link {
    font-weight: 500;
    padding: 8px 16px !important;
}

/* ========== SIDEBAR STYLING ========== */
.main-sidebar {
    background: linear-gradient(180deg, #005330 0%, #003d24 100%) !important;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1) !important;
}

.brand-link {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease;
}

.brand-link:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

/* User Panel */
.user-panel {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 15px !important;
}

.user-panel .image img {
    border: 3px solid #F8C722 !important;
    transition: all 0.3s ease;
}

.user-panel:hover .image img {
    transform: scale(1.1);
    border-color: #fff !important;
}

.user-panel .info a {
    color: #fff !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.user-panel .info a:hover {
    color: #F8C722 !important;
}

/* Sidebar Menu */
.nav-sidebar .nav-item {
    margin: 4px 8px;
}

.nav-sidebar .nav-link {
    border-radius: 10px !important;
    padding: 12px 16px !important;
    margin: 2px 0 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    position: relative;
    overflow: hidden;
}

.nav-sidebar .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: #F8C722;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.nav-sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    transform: translateX(8px);
    color: #fff !important;
}

.nav-sidebar .nav-link:hover::before {
    transform: scaleY(1);
}

.nav-sidebar .nav-link.active {
    background: linear-gradient(135deg, #F8C722 0%, #e0b41f 100%) !important;
    color: #005330 !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(248, 199, 34, 0.3) !important;
    transform: translateX(8px);
}

.nav-sidebar .nav-link.active::before {
    transform: scaleY(1);
    background: #005330;
}

.nav-sidebar .nav-link.active i {
    color: #005330 !important;
}

.nav-sidebar .nav-icon {
    margin-right: 12px !important;
    font-size: 1.1rem !important;
    transition: all 0.3s ease;
}

.nav-sidebar .nav-link:hover .nav-icon {
    transform: scale(1.2) rotate(5deg);
}

.nav-sidebar .nav-link.active .nav-icon {
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Sidebar Treeview */
.nav-treeview > .nav-item > .nav-link {
    padding-left: 45px !important;
    font-size: 0.9rem;
}

.nav-treeview > .nav-item > .nav-link:hover {
    padding-left: 50px !important;
}

/* ========== BUTTON STYLING ========== */
/* Base Button Styles */
.btn {
    font-weight: 600 !important;
    padding: 10px 24px !important;
    border-radius: 8px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: none !important;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

/* input/select/button height parity, in the same 3 tiers .form-control
   already uses (sm/base/lg) - a button had no explicit height anywhere
   before (only padding, which computes a few px shorter than an
   input/select in the same row), which is the actual reason a button next
   to an input/select never quite lined up. `:not(.btn-sm/.btn-lg)` keeps
   this from also forcing every compact icon/table action button (which is
   `.btn.btn-sm`, used everywhere) up to the same full height. */
.btn:not(.btn-sm):not(.btn-lg):not(.btn-xs) {
    height: 48px !important;
    box-sizing: border-box !important;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

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

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(248, 199, 34, 0.25) !important;
}

/* Button Primary */
.btn-primary {
    background: linear-gradient(135deg, #F8C722 0%, #e0b41f 100%) !important;
    color: #005330 !important;
    box-shadow: 0 4px 12px rgba(248, 199, 34, 0.3) !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e0b41f 0%, #c49e1a 100%) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(248, 199, 34, 0.4) !important;
    color: #003d24 !important;
}

.btn-primary:active {
    box-shadow: 0 2px 8px rgba(248, 199, 34, 0.3) !important;
}

/* Button Success */
.btn-success {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3) !important;
}

.btn-success:hover {
    background: linear-gradient(135deg, #229954 0%, #1e8449 100%) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4) !important;
    color: #fff !important;
}

.btn-success:active {
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3) !important;
}

.btn-success:focus {
    box-shadow: 0 0 0 0.2rem rgba(39, 174, 96, 0.25) !important;
}

/* Button Info */
.btn-info {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3) !important;
}

.btn-info:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f6aa5 100%) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4) !important;
    color: #fff !important;
}

.btn-info:active {
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3) !important;
}

.btn-info:focus {
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25) !important;
}

/* Button Warning */
.btn-warning {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3) !important;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4) !important;
    color: #fff !important;
}

.btn-warning:active {
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3) !important;
}

.btn-warning:focus {
    box-shadow: 0 0 0 0.2rem rgba(243, 156, 18, 0.25) !important;
}

/* Button Danger */
.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3) !important;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4) !important;
    color: #fff !important;
}

.btn-danger:active {
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3) !important;
}

.btn-danger:focus {
    box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.25) !important;
}

/* Button Secondary */
.btn-secondary {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(149, 165, 166, 0.3) !important;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #7f8c8d 0%, #6c7a89 100%) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(149, 165, 166, 0.4) !important;
    color: #fff !important;
}

.btn-secondary:active {
    box-shadow: 0 2px 8px rgba(149, 165, 166, 0.3) !important;
}

.btn-secondary:focus {
    box-shadow: 0 0 0 0.2rem rgba(149, 165, 166, 0.25) !important;
}

/* Button Dark */
.btn-dark {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(52, 73, 94, 0.3) !important;
}

.btn-dark:hover {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(52, 73, 94, 0.4) !important;
    color: #fff !important;
}

.btn-dark:active {
    box-shadow: 0 2px 8px rgba(52, 73, 94, 0.3) !important;
}

.btn-dark:focus {
    box-shadow: 0 0 0 0.2rem rgba(52, 73, 94, 0.25) !important;
}

/* Button Light */
.btn-light {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    color: #2c3e50 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #e9ecef !important;
}

.btn-light:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12) !important;
    color: #1a252f !important;
    border-color: #dee2e6 !important;
}

.btn-light:active {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.btn-light:focus {
    box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.15) !important;
}

/* Button Link */
.btn-link {
    color: #005330 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 10px 16px !important;
}

.btn-link:hover {
    color: #F8C722 !important;
    text-decoration: underline !important;
    background: rgba(248, 199, 34, 0.05) !important;
    transform: translateY(-2px);
}

.btn-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 83, 48, 0.15) !important;
}

/* Button Outline Variants */
.btn-outline-primary {
    background: transparent !important;
    border: 2px solid #F8C722 !important;
    color: #F8C722 !important;
    box-shadow: none !important;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #F8C722 0%, #e0b41f 100%) !important;
    border-color: #F8C722 !important;
    color: #005330 !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(248, 199, 34, 0.3) !important;
}

.btn-outline-success {
    background: transparent !important;
    border: 2px solid #27ae60 !important;
    color: #27ae60 !important;
    box-shadow: none !important;
}

.btn-outline-success:hover {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%) !important;
    border-color: #27ae60 !important;
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.3) !important;
}

.btn-outline-info {
    background: transparent !important;
    border: 2px solid #3498db !important;
    color: #3498db !important;
    box-shadow: none !important;
}

.btn-outline-info:hover {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%) !important;
    border-color: #3498db !important;
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3) !important;
}

.btn-outline-warning {
    background: transparent !important;
    border: 2px solid #f39c12 !important;
    color: #f39c12 !important;
    box-shadow: none !important;
}

.btn-outline-warning:hover {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%) !important;
    border-color: #f39c12 !important;
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.3) !important;
}

.btn-outline-danger {
    background: transparent !important;
    border: 2px solid #e74c3c !important;
    color: #e74c3c !important;
    box-shadow: none !important;
}

.btn-outline-danger:hover {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
    border-color: #e74c3c !important;
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3) !important;
}

.btn-outline-secondary {
    background: transparent !important;
    border: 2px solid #95a5a6 !important;
    color: #95a5a6 !important;
    box-shadow: none !important;
}

.btn-outline-secondary:hover {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%) !important;
    border-color: #95a5a6 !important;
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(149, 165, 166, 0.3) !important;
}

/* Button Sizes - heights match .form-control-lg/-sm's own tiers below, so
   a .btn-lg/.btn-sm next to an input/select of the same size still lines
   up (only the base/default size was fixed above). */
.btn-lg {
    padding: 14px 32px !important;
    font-size: 1.1rem !important;
    border-radius: 10px !important;
    height: 56px !important;
    box-sizing: border-box !important;
}

.btn-sm {
    padding: 6px 16px !important;
    font-size: 0.85rem !important;
    border-radius: 6px !important;
    height: 38px !important;
    box-sizing: border-box !important;
}

.btn-xs {
    padding: 4px 12px !important;
    font-size: 0.75rem !important;
    border-radius: 5px !important;
    height: 30px !important;
    box-sizing: border-box !important;
}

/* Button Block */
.btn-block {
    width: 100% !important;
    display: block !important;
}

/* Button Group */
.btn-group .btn {
    border-radius: 0 !important;
    margin: 0 !important;
}

.btn-group .btn:first-child {
    border-top-left-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
}

.btn-group .btn:last-child {
    border-top-right-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
}

.btn-group .btn:hover {
    z-index: 1;
}

/* Button with Icons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.btn i {
    margin-right: 8px;
    transition: transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.btn:hover i {
    transform: scale(1.1);
}

.btn i.fa-arrow-right,
.btn i.fa-chevron-right {
    margin-right: 0;
    margin-left: 8px;
}

/* Button Icon Only */
.btn i:only-child {
    margin: 0;
}

/* Button Group Alignment */
.btn-group {
    display: inline-flex;
    align-items: center;
}

/* Action Button Alignment in Tables */
.table .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

/* Disabled Button */
.btn:disabled,
.btn.disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

.btn:disabled:hover,
.btn.disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Loading Button */
.btn.loading {
    pointer-events: none;
    position: relative;
    color: transparent !important;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

/* Button Transparent */
.btn-transparent {
    background-color: transparent !important;
    background-repeat: no-repeat;
    border: none !important;
    cursor: pointer;
    overflow: hidden;
    outline: none;
    box-shadow: none !important;
    padding: 8px 16px !important;
}

.btn-transparent:hover {
    background-color: rgba(0, 83, 48, 0.05) !important;
}

/* Button with Badge */
.btn .badge {
    margin-left: 8px;
    padding: 3px 8px;
    font-size: 0.7rem;
    border-radius: 10px;
}

/* Responsive Buttons */
@media (max-width: 768px) {
    .btn {
        padding: 8px 16px !important;
        font-size: 0.9rem !important;
    }

    .btn-lg {
        padding: 12px 24px !important;
        font-size: 1rem !important;
    }

    .btn-sm {
        padding: 5px 12px !important;
        font-size: 0.8rem !important;
    }
}

/* ========== FILE UPLOAD STYLING ========== */
.file-drop-area {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 25px;
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    transition: all 0.3s ease;
    justify-content: center;
    background: #f7fafc;
}

.file-drop-area:hover {
    border-color: #F8C722;
    background: #fffbf0;
}

.file-drop-area.active {
    border: 2px solid #F8C722;
    background-color: #fffbf0;
    box-shadow: 0 4px 12px rgba(248, 199, 34, 0.2);
}

.choose-file-button {
    flex-shrink: 0;
    background: linear-gradient(135deg, #F8C722 0%, #e0b41f 100%);
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    margin-right: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #005330;
    box-shadow: 0 2px 8px rgba(248, 199, 34, 0.3);
    transition: all 0.3s ease;
}

.choose-file-button:hover {
    background: linear-gradient(135deg, #005330 0%, #003d24 100%);
    color: #F8C722;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 83, 48, 0.3);
}

.file-message {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #4a5568;
}

.file-input {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    cursor: pointer;
    opacity: 0;
}

/* ========== UTILITY CLASSES ========== */
.mt-100 {
    margin-top: 100px;
}

.nav-link {
    font-size: 10pt !important;
}

.fa {
    transform: scale(0.75, 0.75);
}

/* ========== SCROLLBAR STYLING ========== */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(248, 199, 34, 0.5);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(248, 199, 34, 0.8);
}

/* ========== PUSHMENU BUTTON ========== */
[data-widget="pushmenu"] {
    background: rgba(0, 83, 48, 0.05);
    border-radius: 8px;
    padding: 8px 12px !important;
}

[data-widget="pushmenu"]:hover {
    background: rgba(0, 83, 48, 0.1);
}

/* ========== TABLE STYLING ========== */
.table-responsive {
    border-radius: 12px;
    overflow-x: auto;
    overflow-y: auto;
    max-height: 600px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background: #fff;
    position: relative;
}

/* Custom Scrollbar for Table */
.table-responsive::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #F8C722 0%, #e0b41f 100%);
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #e0b41f 0%, #c49e1a 100%);
}

.table-responsive::-webkit-scrollbar-corner {
    background: #f1f1f1;
}

.table {
    margin-bottom: 0 !important;
}

.table thead th {
    background: linear-gradient(135deg, #005330 0%, #003d24 100%) !important;
    color: #fff !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 16px 20px !important;
    border: none !important;
    position: sticky;
    top: 0;
    z-index: 10;
    white-space: nowrap;
}

.table thead th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #F8C722 0%, transparent 100%);
}

.table tbody tr {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 1px solid #e9ecef;
}

.table tbody tr:hover {
    background: linear-gradient(90deg, rgba(248, 199, 34, 0.05) 0%, rgba(0, 83, 48, 0.02) 100%) !important;
    box-shadow: 0 2px 8px rgba(0, 83, 48, 0.1);
}

.table tbody tr:last-child {
    border-bottom: none;
}

.table tbody td {
    padding: 14px 20px !important;
    vertical-align: middle !important;
    color: #2c3e50;
    font-size: 0.9rem;
    border: none !important;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 83, 48, 0.02);
}

.table-striped tbody tr:nth-of-type(even) {
    background-color: #fff;
}

/* Custom Row Striping for Rowspan Tables */
.table tbody tr.row-odd,
.table tbody tr.row-odd > td {
    background-color: #6cab9c !important;
}

.table tbody tr.row-even,
.table tbody tr.row-even > td {
    background-color: #ffffff !important;
}

.table tbody tr.row-odd:hover > td,
.table tbody tr.row-even:hover > td {
    background-color: rgba(248, 199, 34, 0.2) !important;
}

.table-bordered {
    border: 1px solid #e9ecef !important;
    border-radius: 12px !important;
    overflow: hidden;
}

.table-bordered thead th,
.table-bordered tbody td {
    border: 1px solid #e9ecef !important;
}

/* Table Actions */
.table .btn {
    margin: 2px;
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 6px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.table .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.table .btn-sm {
    padding: 4px 10px;
    font-size: 0.8rem;
}

.table .btn-info {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border: none;
    color: #fff;
}

.table .btn-info:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f6aa5 100%);
}

.table .btn-warning {
    background: linear-gradient(135deg, #F8C722 0%, #e0b41f 100%);
    border: none;
    color: #005330;
    font-weight: 600;
}

.table .btn-warning:hover {
    background: linear-gradient(135deg, #e0b41f 0%, #c49e1a 100%);
}

.table .btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border: none;
    color: #fff;
}

.table .btn-danger:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
}

.table .btn-success {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    border: none;
    color: #fff;
}

.table .btn-success:hover {
    background: linear-gradient(135deg, #229954 0%, #1e8449 100%);
}

/* Badge in Table */
.table .badge {
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table .badge-success {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

.table .badge-warning {
    background: linear-gradient(135deg, #F8C722 0%, #e0b41f 100%);
    color: #005330;
    box-shadow: 0 2px 8px rgba(248, 199, 34, 0.3);
}

.table .badge-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.table .badge-info {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.table .badge-secondary {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    box-shadow: 0 2px 8px rgba(149, 165, 166, 0.3);
}

.table .badge-primary {
    background: linear-gradient(135deg, #005330 0%, #003d24 100%);
    box-shadow: 0 2px 8px rgba(0, 83, 48, 0.3);
}

/* DataTables Enhancement */
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

.dataTables_wrapper .dataTables_length select:focus,
.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #F8C722;
    box-shadow: 0 0 0 0.2rem rgba(248, 199, 34, 0.15);
    outline: none;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 6px !important;
    margin: 0 2px;
    transition: all 0.3s ease;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: linear-gradient(135deg, #F8C722 0%, #e0b41f 100%) !important;
    color: #005330 !important;
    border: none !important;
    font-weight: 600;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: linear-gradient(135deg, #005330 0%, #003d24 100%) !important;
    color: #fff !important;
    border: none !important;
}

/* Table Row Number */
.table tbody td:first-child {
    font-weight: 600;
    color: #005330;
}

/* Empty Table State */
.table tbody tr.odd td.dataTables_empty,
.table tbody tr td.dataTables_empty {
    padding: 40px 20px !important;
    text-align: center;
    color: #95a5a6;
    font-style: italic;
}

/* Table Loading State */
.table.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Responsive Table */
@media (max-width: 768px) {
    .table thead th {
        font-size: 0.75rem;
        padding: 12px 10px !important;
    }

    .table tbody td {
        font-size: 0.8rem;
        padding: 10px !important;
    }

    .table .btn {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
}

/* ========== CARD STYLING ========== */
.card {
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    background: #fff;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #F8C722 0%, #005330 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15) !important;
}

.card:hover::before {
    transform: scaleX(1);
}

/* Card Header */
.card-header {
    background: linear-gradient(135deg, #005330 0%, #003d24 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 16px 16px 0 0 !important;
    padding: 20px 24px !important;
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

.card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #F8C722 0%, transparent 100%);
}

.card-header h3,
.card-header h4,
.card-header h5 {
    margin: 0 !important;
    font-weight: 700 !important;
    color: #fff !important;
}

.card-header .card-title {
    margin: 0 !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #fff !important;
    display: flex;
    align-items: center;
}

.card-header .card-title i {
    margin-right: 12px;
    font-size: 1.3rem;
    background: rgba(248, 199, 34, 0.2);
    padding: 8px;
    border-radius: 8px;
}

/* Card Header Tools */
.card-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-tools .btn {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 6px 12px !important;
    font-size: 0.85rem !important;
}

.card-tools .btn:hover {
    background: rgba(248, 199, 34, 0.2) !important;
    border-color: #F8C722 !important;
    transform: translateY(-2px);
}

/* Card Body */
.card-body {
    padding: 24px !important;
    background: #fff;
    position: relative;
}

.card-body.loading {
    opacity: 0.6;
    pointer-events: none;
}

.card-body.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #F8C722;
    border-radius: 50%;
    animation: spinner 0.8s linear infinite;
}

/* Card Body with Padding Variants */
.card-body.p-0 {
    padding: 0 !important;
}

.card-body.p-sm {
    padding: 12px !important;
}

.card-body.p-lg {
    padding: 32px !important;
}

/* Card Title in Body */
.card-body .card-title {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #005330 !important;
    margin-bottom: 16px !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid #f0f0f0 !important;
    position: relative;
}

.card-body .card-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #F8C722 0%, #005330 100%);
}

/* Card Subtitle */
.card-subtitle {
    font-size: 0.9rem !important;
    color: #6c757d !important;
    margin-bottom: 16px !important;
    font-weight: 500;
}

/* Card Text */
.card-text {
    color: #495057 !important;
    line-height: 1.6 !important;
    margin-bottom: 12px !important;
}

/* Card Footer */
.card-footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f2f5 100%) !important;
    border: none !important;
    border-radius: 0 0 16px 16px !important;
    padding: 16px 24px !important;
    border-top: 1px solid #e9ecef !important;
}

/* Card Variants */
.card-primary {
    border-left: 4px solid #F8C722 !important;
}

.card-primary .card-header {
    background: linear-gradient(135deg, #F8C722 0%, #e0b41f 100%) !important;
    color: #005330 !important;
}

.card-success {
    border-left: 4px solid #27ae60 !important;
}

.card-success .card-header {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%) !important;
}

.card-info {
    border-left: 4px solid #3498db !important;
}

.card-info .card-header {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%) !important;
}

.card-warning {
    border-left: 4px solid #f39c12 !important;
}

.card-warning .card-header {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%) !important;
}

.card-danger {
    border-left: 4px solid #e74c3c !important;
}

.card-danger .card-header {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
}

/* Card Outline */
.card-outline {
    border: 2px solid #e9ecef !important;
    box-shadow: none !important;
}

.card-outline.card-primary {
    border-color: #F8C722 !important;
}

.card-outline.card-primary .card-header {
    background: transparent !important;
    color: #F8C722 !important;
    border-bottom: 2px solid #F8C722 !important;
}

.card-outline.card-primary .card-header .card-title,
.card-outline.card-primary .card-header h3,
.card-outline.card-primary .card-header h4,
.card-outline.card-primary .card-header h5 {
    color: #F8C722 !important;
}

.card-outline.card-success {
    border-color: #27ae60 !important;
}

.card-outline.card-success .card-header {
    background: transparent !important;
    color: #27ae60 !important;
    border-bottom: 2px solid #27ae60 !important;
}

.card-outline.card-success .card-header .card-title,
.card-outline.card-success .card-header h3,
.card-outline.card-success .card-header h4,
.card-outline.card-success .card-header h5 {
    color: #27ae60 !important;
}

.card-outline.card-warning {
    border-color: #f39c12 !important;
}

.card-outline.card-warning .card-header {
    background: transparent !important;
    color: #f39c12 !important;
    border-bottom: 2px solid #f39c12 !important;
}

.card-outline.card-warning .card-header .card-title,
.card-outline.card-warning .card-header h3,
.card-outline.card-warning .card-header h4,
.card-outline.card-warning .card-header h5 {
    color: #f39c12 !important;
}

.card-outline.card-danger {
    border-color: #e74c3c !important;
}

.card-outline.card-danger .card-header {
    background: transparent !important;
    color: #e74c3c !important;
    border-bottom: 2px solid #e74c3c !important;
}

.card-outline.card-danger .card-header .card-title,
.card-outline.card-danger .card-header h3,
.card-outline.card-danger .card-header h4,
.card-outline.card-danger .card-header h5 {
    color: #e74c3c !important;
}

.card-outline.card-info {
    border-color: #3498db !important;
}

.card-outline.card-info .card-header {
    background: transparent !important;
    color: #3498db !important;
    border-bottom: 2px solid #3498db !important;
}

.card-outline.card-info .card-header .card-title,
.card-outline.card-info .card-header h3,
.card-outline.card-info .card-header h4,
.card-outline.card-info .card-header h5 {
    color: #3498db !important;
}

/* Collapsed Card */
.card.collapsed-card .card-body,
.card.collapsed-card .card-footer {
    display: none;
}

/* Card with Icon */
.card-icon {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.2);
}

/* Small Box (Info Box) */
.small-box {
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.small-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.small-box:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
}

.small-box .inner {
    padding: 20px !important;
}

.small-box h3 {
    font-size: 2.2rem !important;
    font-weight: 700 !important;
    margin: 0 0 10px 0 !important;
}

.small-box p {
    font-size: 1rem !important;
    margin: 0 !important;
}

.small-box .icon {
    font-size: 4rem !important;
    position: absolute;
    top: 20px;
    right: 20px;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.small-box:hover .icon {
    transform: scale(1.1) rotate(5deg);
    opacity: 0.4;
}

.small-box .small-box-footer {
    background: rgba(0, 0, 0, 0.1) !important;
    padding: 10px !important;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.small-box:hover .small-box-footer {
    background: rgba(0, 0, 0, 0.2) !important;
}

/* Card Grid */
.card-deck .card {
    margin-bottom: 24px;
}

/* Responsive Cards */
@media (max-width: 768px) {
    .card-header {
        padding: 16px 20px !important;
    }

    .card-body {
        padding: 16px !important;
    }

    .card-footer {
        padding: 12px 20px !important;
    }

    .card-header .card-title {
        font-size: 1.1rem !important;
    }
}

/* Table Search Highlight */
.table tbody tr.search-highlight {
    background: rgba(248, 199, 34, 0.15) !important;
    animation: highlightFade 2s ease;
}

@keyframes highlightFade {
    0% { background: rgba(248, 199, 34, 0.4); }
    100% { background: rgba(248, 199, 34, 0.15); }
}

/* Table Sort Icons */
.table thead th.sorting,
.table thead th.sorting_asc,
.table thead th.sorting_desc {
    cursor: pointer;
}

.table thead th.sorting:hover,
.table thead th.sorting_asc:hover,
.table thead th.sorting_desc:hover {
    background: linear-gradient(135deg, #003d24 0%, #002a19 100%) !important;
}

/* ===================================
    PRELOADER STYLING
    =================================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #005330 0%, #003d24 50%, #005330 100%) !important;
    background-size: 200% 200% !important;
    animation: gradientShift 3s ease infinite !important;
    z-index: 9999 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    transition: opacity 0.5s ease, visibility 0.5s ease !important;
}

/* Gradient animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Logo container dengan glow effect */
.preloader img {
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 20px rgba(248, 199, 34, 0.4)) !important;
    animation: logoFloat 2s ease-in-out infinite !important;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-15px) scale(1.05);
    }
}

/* Spinner ring di sekitar logo */
.preloader::before {
    content: '';
    position: absolute;
    width: 160px;
    height: 160px;
    border: 4px solid transparent;
    border-top: 4px solid #F8C722;
    border-right: 4px solid #F8C722;
    border-radius: 50%;
    animation: spinnerRotate 1.5s linear infinite;
    z-index: 1;
}

@keyframes spinnerRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Outer ring dengan opacity */
.preloader::after {
    content: '';
    position: absolute;
    width: 190px;
    height: 190px;
    border: 3px solid transparent;
    border-bottom: 3px solid rgba(248, 199, 34, 0.3);
    border-left: 3px solid rgba(248, 199, 34, 0.3);
    border-radius: 50%;
    animation: spinnerRotateReverse 2s linear infinite;
    z-index: 1;
}

@keyframes spinnerRotateReverse {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(-360deg);
    }
}

/* Loading text */
.preloader-text {
    position: absolute;
    bottom: 35%;
    color: #F8C722;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    animation: textPulse 1.5s ease-in-out infinite;
    text-shadow: 0 2px 10px rgba(248, 199, 34, 0.3);
}

@keyframes textPulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* Dots animation */
.preloader-dots {
    display: inline-block;
    margin-left: 4px;
}

.preloader-dots span {
    animation: dotBounce 1.4s infinite ease-in-out;
    display: inline-block;
}

.preloader-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.preloader-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes dotBounce {
    0%, 80%, 100% {
        opacity: 0.4;
        transform: scale(0.8);
    }
    40% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Progress bar di bawah */
.preloader-progress {
    position: absolute;
    bottom: 25%;
    width: 250px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.preloader-progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #F8C722 0%, #e0b41f 50%, #F8C722 100%);
    background-size: 200% 100%;
    animation: progressSlide 1.5s ease-in-out infinite;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(248, 199, 34, 0.5);
}

@keyframes progressSlide {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Particle effect */
.preloader-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #F8C722;
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 3s infinite ease-in-out;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0;
    }
}

/* Fade out effect when preloader hides */
.preloader.fade-out {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Responsive */
@media (max-width: 768px) {
    .preloader::before {
        width: 130px;
        height: 130px;
    }

    .preloader::after {
        width: 155px;
        height: 155px;
    }

    .preloader img {
        width: 80px !important;
        height: 80px !important;
    }

    .preloader-text {
        font-size: 16px;
        bottom: 32%;
    }

    .preloader-progress {
        width: 200px;
        bottom: 22%;
    }
}

/* ===================================
    HIDE UNWANTED LOADERS
    =================================== */
/* Hide AdminLTE default loading overlays */
.overlay:not(.dark),
.loading-overlay,
[data-widget="loading"],
.wrapper > .overlay,
.content-wrapper > .overlay {
    display: none !important;
}

/* Hide pace.js loader if exists */
.pace,
.pace-progress {
    display: none !important;
}

/* Ensure no duplicate spinners */
body > .spinner,
body > .loader,
.wrapper > .spinner,
.wrapper > .loader {
    display: none !important;
}

/* ===================================
    FORM STYLING
    =================================== */
/* Form Group */
.form-group {
    margin-bottom: 24px !important;
    position: relative;
}

.form-group label {
    font-weight: 600 !important;
    color: #2c3e50 !important;
    margin-bottom: 8px !important;
    font-size: 0.95rem;
    display: inline-block;
    transition: all 0.3s ease;
}

.form-group label.required::after {
    content: '*';
    color: #e74c3c;
    margin-left: 4px;
    font-weight: 700;
}

/* Form Control Base */
.form-control {
    border: 2px solid #e9ecef !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    font-size: 0.95rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background-color: #fff !important;
    color: #2c3e50 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02) !important;
}

.form-control::placeholder {
    color: #95a5a6 !important;
    opacity: 0.7;
    font-style: italic;
}

.form-control:focus {
    border-color: #F8C722 !important;
    box-shadow: 0 0 0 0.2rem rgba(248, 199, 34, 0.15), 0 4px 12px rgba(248, 199, 34, 0.1) !important;
    outline: none !important;
    background-color: #fffbf0 !important;
}

.form-control:hover:not(:focus):not(:disabled) {
    border-color: #ddd !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05) !important;
}

.form-control:disabled,
.form-control[readonly] {
    background-color: #f8f9fa !important;
    border-color: #e9ecef !important;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Form Control Sizes */
.form-control-lg {
    padding: 16px 20px !important;
    font-size: 1.1rem !important;
    border-radius: 12px !important;
}

.form-control-sm {
    padding: 8px 12px !important;
    font-size: 0.85rem !important;
    border-radius: 8px !important;
}

/* Textarea */
textarea.form-control {
    min-height: 100px;
    resize: vertical;
    line-height: 1.6;
}

textarea.form-control:focus {
    min-height: 120px;
}

/* Select */
select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 12px;
    padding-right: 40px !important;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    height: auto !important;
    min-height: 48px !important;
    min-width: 100px !important;
    line-height: 1.5 !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

select.form-control:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23F8C722' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

select.form-control option {
    padding: 14px 12px;
    line-height: 1.6;
    min-height: 40px;
}

/*
 * input/select height parity. .form-control (shared with textarea, left
 * untouched above) never set an explicit height, and select's own
 * min-height:48px + its 14px top/bottom padding actually renders closer to
 * ~55px in practice - so a text input sitting next to a select in the same
 * row has always rendered visibly shorter, on every page using
 * .form-control (Blade and Inertia alike, since this file - not Tailwind -
 * is what both load). Scoped to `input`/`select` specifically (never
 * `textarea`) so multi-line fields are unaffected; padding-top/bottom is
 * zeroed and line-height set to the box's own content height so text still
 * centers correctly with no padding driving it.
 */
input.form-control,
select.form-control {
    height: 48px !important;
    line-height: 44px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    box-sizing: border-box !important;
}

/* Select Size Variants */
select.form-control-lg {
    min-height: 56px !important;
    padding-top: 18px !important;
    padding-bottom: 18px !important;
}

select.form-control-sm {
    min-height: 38px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

input.form-control-lg,
select.form-control-lg {
    height: 56px !important;
    line-height: 52px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    box-sizing: border-box !important;
}

input.form-control-sm,
select.form-control-sm {
    height: 38px !important;
    line-height: 34px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    box-sizing: border-box !important;
}

/* Input Group */
.input-group {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.input-group:focus-within {
    box-shadow: 0 0 0 0.2rem rgba(248, 199, 34, 0.15), 0 4px 12px rgba(248, 199, 34, 0.1);
}

.input-group .form-control {
    box-shadow: none !important;
}

.input-group .form-control:not(:last-child) {
    border-right: none !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.input-group .form-control:not(:first-child) {
    border-left: none !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.input-group-prepend,
.input-group-append {
    display: flex;
    align-items: center;
}

.input-group-text {
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f2f5 100%) !important;
    border: 2px solid #e9ecef !important;
    color: #495057 !important;
    font-weight: 600;
    padding: 12px 16px !important;
    border-radius: 10px !important;
    transition: all 0.3s ease;
}

.input-group:focus-within .input-group-text {
    background: linear-gradient(135deg, #fffbf0 0%, #fff9e6 100%) !important;
    border-color: #F8C722 !important;
    color: #005330 !important;
}

.input-group-prepend .input-group-text {
    border-right: none !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.input-group-append .input-group-text {
    border-left: none !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

/* Input with Icon */
.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #95a5a6;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    pointer-events: none;
}

.input-icon-wrapper .form-control {
    padding-left: 48px !important;
}

.input-icon-wrapper .form-control:focus ~ i {
    color: #F8C722;
}

/* Custom Checkbox & Radio */
.custom-control {
    padding-left: 32px;
    margin-bottom: 12px;
}

.custom-control-label {
    cursor: pointer;
    user-select: none;
    font-weight: 500;
    color: #2c3e50;
    line-height: 1.6;
}

.custom-control-label::before {
    border: 2px solid #e9ecef !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    background-color: #fff;
}

.custom-control-input:checked ~ .custom-control-label::before {
    background: linear-gradient(135deg, #F8C722 0%, #e0b41f 100%) !important;
    border-color: #F8C722 !important;
    box-shadow: 0 4px 12px rgba(248, 199, 34, 0.3);
}

.custom-control-input:focus ~ .custom-control-label::before {
    box-shadow: 0 0 0 0.2rem rgba(248, 199, 34, 0.15), 0 2px 4px rgba(0, 0, 0, 0.05);
}

.custom-checkbox .custom-control-label::before {
    border-radius: 6px;
}

.custom-radio .custom-control-label::before {
    border-radius: 50%;
}

.custom-control-input:disabled ~ .custom-control-label {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Custom Switch */
.custom-switch .custom-control-label::before {
    border-radius: 20px;
    width: 48px;
    height: 24px;
    background-color: #e9ecef;
    border: 2px solid #dee2e6 !important;
}

.custom-switch .custom-control-label::after {
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    top: 5px;
    left: -28px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-switch .custom-control-input:checked ~ .custom-control-label::before {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%) !important;
    border-color: #27ae60 !important;
}

.custom-switch .custom-control-input:checked ~ .custom-control-label::after {
    transform: translateX(24px);
}

/* Custom File Input */
.custom-file {
    position: relative;
    height: auto;
}

.custom-file-input {
    height: auto;
    cursor: pointer;
}

.custom-file-label {
    border: 2px solid #e9ecef !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    font-size: 0.95rem;
    background-color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.custom-file-label::after {
    background: linear-gradient(135deg, #F8C722 0%, #e0b41f 100%) !important;
    color: #005330 !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-weight: 600;
    margin: -10px -14px -10px 0;
    height: auto;
}

.custom-file-input:focus ~ .custom-file-label {
    border-color: #F8C722 !important;
    box-shadow: 0 0 0 0.2rem rgba(248, 199, 34, 0.15), 0 4px 12px rgba(248, 199, 34, 0.1);
    background-color: #fffbf0;
}

.custom-file-label:hover {
    border-color: #ddd;
}

/* Form Validation States */
.form-control.is-valid,
.was-validated .form-control:valid {
    border-color: #27ae60 !important;
    background-image: none;
}

.form-control.is-valid:focus,
.was-validated .form-control:valid:focus {
    border-color: #27ae60 !important;
    box-shadow: 0 0 0 0.2rem rgba(39, 174, 96, 0.15), 0 4px 12px rgba(39, 174, 96, 0.1) !important;
}

.form-control.is-invalid,
.was-validated .form-control:invalid {
    border-color: #e74c3c !important;
    background-image: none;
}

.form-control.is-invalid:focus,
.was-validated .form-control:invalid:focus {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.15), 0 4px 12px rgba(231, 76, 60, 0.1) !important;
}

.valid-feedback {
    color: #27ae60 !important;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 6px;
    display: flex;
    align-items: center;
}

.valid-feedback::before {
    content: '✓';
    margin-right: 6px;
    font-weight: 700;
}

.invalid-feedback {
    color: #e74c3c !important;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 6px;
    display: flex;
    align-items: center;
}

.invalid-feedback::before {
    content: '⚠';
    margin-right: 6px;
}

/* Form Text Helper */
.form-text {
    color: #6c757d !important;
    font-size: 0.875rem;
    margin-top: 6px;
    font-style: italic;
}

/* Form Row */
.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -8px;
    margin-left: -8px;
}

.form-row > .col,
.form-row > [class*="col-"] {
    padding-right: 8px;
    padding-left: 8px;
}

/* Floating Labels */
.form-label-group {
    position: relative;
    margin-bottom: 24px;
}

.form-label-group input,
.form-label-group textarea {
    height: 56px;
    padding: 20px 16px 8px 16px !important;
}

.form-label-group label {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    margin-bottom: 0;
    line-height: 1.5;
    color: #95a5a6;
    pointer-events: none;
    cursor: text;
    border: 2px solid transparent;
    border-radius: 10px;
    transition: all 0.3s ease;
    padding: 18px 16px;
}

.form-label-group input:focus ~ label,
.form-label-group input:not(:placeholder-shown) ~ label,
.form-label-group textarea:focus ~ label,
.form-label-group textarea:not(:placeholder-shown) ~ label {
    padding: 6px 16px;
    font-size: 0.75rem;
    color: #F8C722;
    font-weight: 600;
}

/* Input Range Slider */
input[type="range"].form-control-range {
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, #F8C722 0%, #F8C722 50%, #e9ecef 50%, #e9ecef 100%);
    border-radius: 5px;
    outline: none;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    padding: 0;
    border: none;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

input[type="range"].form-control-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #F8C722 0%, #e0b41f 100%);
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(248, 199, 34, 0.4);
    transition: all 0.3s ease;
}

input[type="range"].form-control-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(248, 199, 34, 0.5);
}

input[type="range"].form-control-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #F8C722 0%, #e0b41f 100%);
    cursor: pointer;
    border-radius: 50%;
    border: none;
    box-shadow: 0 2px 8px rgba(248, 199, 34, 0.4);
    transition: all 0.3s ease;
}

input[type="range"].form-control-range::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(248, 199, 34, 0.5);
}

/* Responsive Forms */
@media (max-width: 768px) {
    .form-group {
        margin-bottom: 20px !important;
    }

    .form-control {
        padding: 10px 14px !important;
        font-size: 0.9rem !important;
    }

    .form-control-lg {
        padding: 14px 16px !important;
        font-size: 1rem !important;
    }

    .input-group-text {
        padding: 10px 14px !important;
        font-size: 0.9rem;
    }
}

/* ===================================
    MODAL STYLING
    =================================== */

/* Fix kedap-kedip: Bootstrap tambah padding-right ke navbar saat modal buka
   (kompensasi scrollbar hilang). Dengan overflow-y: scroll, scrollbar tetap
   ada sehingga Bootstrap tidak perlu kompensasi → tidak ada layout shift */
body.modal-open {
    overflow-y: scroll !important;
    padding-right: 0 !important;
}

/* Modal Overlay */
.modal {
    z-index: 1055 !important;
}

.modal.fade .modal-dialog {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    transform: translateY(-30px) scale(0.97);
}

.modal.show .modal-dialog {
    transform: translateY(0) scale(1);
}

/* Modal Backdrop */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.6) !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-backdrop.show {
    opacity: 0.6 !important;
}

/* Modal Dialog */
.modal-dialog {
    max-width: 600px;
    margin: 1.75rem auto;
}

.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 3.5rem);
}

.modal-dialog-scrollable {
    max-height: calc(100% - 3.5rem);
}

.modal-dialog-scrollable .modal-content {
    max-height: calc(100vh - 3.5rem);
    overflow: hidden;
}

.modal-dialog-scrollable .modal-body {
    overflow-y: auto;
}

/* Modal Size Variants */
.modal-sm {
    max-width: 400px !important;
}

.modal-lg {
    max-width: 900px !important;
}

.modal-xl {
    max-width: 1200px !important;
}

/* Modal Content */
.modal-content {
    border: none !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    overflow: hidden;
    background: #fff;
    position: relative;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #F8C722 0%, #005330 50%, #F8C722 100%);
    background-size: 200% 100%;
    animation: gradientSlide 3s ease infinite;
}

@keyframes gradientSlide {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Modal Header */
.modal-header {
    background: linear-gradient(135deg, #005330 0%, #003d24 100%) !important;
    color: #fff !important;
    border: none !important;
    padding: 24px 32px !important;
    border-radius: 20px 20px 0 0 !important;
    position: relative;
    overflow: hidden;
}

.modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #F8C722 0%, transparent 100%);
}

.modal-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -5%;
    width: 200px;
    height: 200px;
    background: rgba(248, 199, 34, 0.1);
    border-radius: 50%;
    animation: floatCircle 6s ease-in-out infinite;
}

@keyframes floatCircle {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, 20px) scale(1.1); }
}

/* Modal Title */
.modal-title {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.modal-title i {
    margin-right: 12px;
    font-size: 1.6rem;
    background: rgba(248, 199, 34, 0.2);
    padding: 10px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.modal-header:hover .modal-title i {
    background: rgba(248, 199, 34, 0.3);
    transform: rotate(5deg) scale(1.1);
}

/* Close Button */
.modal-header .close,
.modal-header .btn-close {
    color: #fff !important;
    opacity: 0.8 !important;
    font-size: 1.8rem !important;
    font-weight: 300 !important;
    text-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.modal-header .close:hover,
.modal-header .btn-close:hover {
    opacity: 1 !important;
    background: rgba(231, 76, 60, 0.9) !important;
    border-color: rgba(231, 76, 60, 1);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.modal-header .close:focus,
.modal-header .btn-close:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.3);
}

/* Modal Body */
.modal-body {
    padding: 32px !important;
    background: #fff;
    color: #2c3e50;
    line-height: 1.6;
    position: relative;
}

.modal-body p {
    margin-bottom: 16px;
    color: #495057;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

/* Modal Body with Loading State */
.modal-body.loading {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    opacity: 0.6;
}

.modal-body.loading::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #F8C722;
    border-radius: 50%;
    animation: spinner 0.8s linear infinite;
}

/* Modal Body Variants */
.modal-body.p-0 {
    padding: 0 !important;
}

.modal-body.p-sm {
    padding: 16px !important;
}

.modal-body.p-lg {
    padding: 48px !important;
}

/* Modal Body with Scroll */
.modal-body.scrollable {
    max-height: 400px;
    overflow-y: auto;
}

/* Custom Scrollbar for Modal Body */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #F8C722 0%, #e0b41f 100%);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #e0b41f 0%, #c49e1a 100%);
}

/* Modal Footer */
.modal-footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f2f5 100%) !important;
    border: none !important;
    padding: 20px 32px !important;
    border-radius: 0 0 20px 20px !important;
    border-top: 1px solid #e9ecef !important;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

.modal-footer .btn {
    margin: 0 !important;
    min-width: 100px;
}

/* Modal Footer Variants */
.modal-footer.justify-content-start {
    justify-content: flex-start !important;
}

.modal-footer.justify-content-center {
    justify-content: center !important;
}

.modal-footer.justify-content-between {
    justify-content: space-between !important;
}

/* Modal with Form */
.modal-body .form-group:last-child {
    margin-bottom: 0 !important;
}

.modal-body .form-control {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
}

.modal-body .form-control:focus {
    background: #fff;
}

/* Modal Variants - Primary */
.modal-primary .modal-header {
    background: linear-gradient(135deg, #F8C722 0%, #e0b41f 100%) !important;
    color: #005330 !important;
}

.modal-primary .modal-title {
    color: #005330 !important;
}

.modal-primary .modal-header .close {
    color: #005330 !important;
}

.modal-primary .modal-content::before {
    background: linear-gradient(90deg, #F8C722 0%, #e0b41f 50%, #F8C722 100%);
}

/* Modal Variants - Success */
.modal-success .modal-header {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%) !important;
}

.modal-success .modal-content::before {
    background: linear-gradient(90deg, #27ae60 0%, #229954 50%, #27ae60 100%);
}

/* Modal Variants - Info */
.modal-info .modal-header {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%) !important;
}

.modal-info .modal-content::before {
    background: linear-gradient(90deg, #3498db 0%, #2980b9 50%, #3498db 100%);
}

/* Modal Variants - Warning */
.modal-warning .modal-header {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%) !important;
}

.modal-warning .modal-content::before {
    background: linear-gradient(90deg, #f39c12 0%, #e67e22 50%, #f39c12 100%);
}

/* Modal Variants - Danger */
.modal-danger .modal-header {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
}

.modal-danger .modal-content::before {
    background: linear-gradient(90deg, #e74c3c 0%, #c0392b 50%, #e74c3c 100%);
}

/* Confirmation Modal Styling */
.modal-confirm .modal-body {
    text-align: center;
    padding: 48px 32px !important;
}

.modal-confirm .modal-body i {
    font-size: 4rem;
    margin-bottom: 24px;
    display: block;
}

.modal-confirm.modal-success .modal-body i {
    color: #27ae60;
    animation: scaleIn 0.5s ease;
}

.modal-confirm.modal-danger .modal-body i {
    color: #e74c3c;
    animation: shake 0.5s ease;
}

.modal-confirm.modal-warning .modal-body i {
    color: #f39c12;
    animation: bounce 0.5s ease;
}

@keyframes scaleIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

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

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.modal-confirm .modal-body h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 16px;
}

.modal-confirm .modal-body p {
    font-size: 1.05rem;
    color: #6c757d;
    margin-bottom: 0;
}

/* Modal with Image/Media */
.modal-media .modal-body {
    padding: 0 !important;
}

.modal-media .modal-body img,
.modal-media .modal-body video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0 0 20px 20px;
}

.modal-media .modal-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(10px);
    color: #fff;
}

/* Fullscreen Modal */
.modal-fullscreen .modal-dialog {
    max-width: 100% !important;
    margin: 0;
    height: 100vh;
}

.modal-fullscreen .modal-content {
    height: 100vh;
    border-radius: 0 !important;
}

.modal-fullscreen .modal-body {
    overflow-y: auto;
}

/* Side Modal (Slide from Right) */
.modal-side {
    padding: 0 !important;
}

.modal-side .modal-dialog {
    position: fixed;
    margin: 0;
    width: 400px;
    height: 100%;
    right: 0;
    top: 0;
}

.modal-side.fade .modal-dialog {
    transform: translateX(100%);
}

.modal-side.show .modal-dialog {
    transform: translateX(0);
}

.modal-side .modal-content {
    height: 100vh;
    border-radius: 0 !important;
}

.modal-side .modal-body {
    overflow-y: auto;
}

/* Modal Loading Overlay */
.modal-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: 20px;
}

.modal-loading-overlay::after {
    content: '';
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #F8C722;
    border-radius: 50%;
    animation: spinner 0.8s linear infinite;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-dialog {
        max-width: calc(100% - 32px) !important;
        margin: 16px auto;
    }

    .modal-dialog-centered {
        min-height: calc(100% - 32px);
    }

    .modal-header {
        padding: 20px 24px !important;
    }

    .modal-title {
        font-size: 1.25rem !important;
    }

    .modal-title i {
        font-size: 1.4rem;
        padding: 8px;
    }

    .modal-body {
        padding: 24px !important;
    }

    .modal-footer {
        padding: 16px 24px !important;
        flex-wrap: wrap;
    }

    .modal-footer .btn {
        min-width: auto;
        flex: 1 1 auto;
    }

    .modal-lg,
    .modal-xl {
        max-width: calc(100% - 32px) !important;
    }

    /* Side modal full width on mobile */
    .modal-side .modal-dialog {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Confirm modal adjustments */
    .modal-confirm .modal-body {
        padding: 32px 24px !important;
    }

    .modal-confirm .modal-body i {
        font-size: 3rem;
        margin-bottom: 16px;
    }

    .modal-confirm .modal-body h4 {
        font-size: 1.25rem;
    }

    .modal-confirm .modal-body p {
        font-size: 0.95rem;
    }
}

/* Modal Animation Variants */
.modal.fade-scale .modal-dialog {
    transform: scale(0.7);
}

.modal.fade-scale.show .modal-dialog {
    transform: scale(1);
}

.modal.slide-up .modal-dialog {
    transform: translateY(100%);
}

.modal.slide-up.show .modal-dialog {
    transform: translateY(0);
}

/* Modal Stacking */
.modal + .modal {
    z-index: 1060 !important;
}

.modal + .modal .modal-backdrop {
    z-index: 1059 !important;
}
