/* ========================================
   Custom CSS - SIM Pengumpulan ZIS
   ======================================== */

/* Sidebar Enhancement */
.main-sidebar {
    background: linear-gradient(180deg, #1a3c2a 0%, #0f2318 100%) !important;
}

.sidebar-dark-success .nav-sidebar > .nav-item > .nav-link.active {
    background: linear-gradient(135deg, #0d9f4f, #076e34) !important;
    box-shadow: 0 4px 15px rgba(13, 159, 79, 0.3);
    border-radius: 8px;
}

.sidebar .nav-treeview > .nav-item > .nav-link.active {
    background: rgba(13, 159, 79, 0.2) !important;
    color: #4ade80 !important;
    border-radius: 6px;
}

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

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

.card-header {
    border-radius: 12px 12px 0 0 !important;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

/* Small Boxes (Dashboard Stats) */
.small-box {
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.small-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

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

.small-box:hover .icon {
    transform: scale(1.1);
}

/* Button Enhancements */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #0d9f4f, #076e34);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #076e34, #044d24);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 159, 79, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    border: none;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border: none;
}

.btn-info {
    background: linear-gradient(135deg, #17a2b8, #138496);
    border: none;
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    border: none;
    color: #212529;
}

/* DataTable Enhancements */
.dataTables_wrapper .dataTables_filter input {
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    padding: 6px 12px;
    transition: border-color 0.3s ease;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #0d9f4f;
    box-shadow: 0 0 0 3px rgba(13, 159, 79, 0.15);
    outline: none;
}

table.dataTable thead th {
    background: linear-gradient(180deg, #f8f9fa, #e9ecef);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #dee2e6 !important;
}

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

table.dataTable tbody tr:hover {
    background-color: rgba(13, 159, 79, 0.05) !important;
}

/* Badge Enhancements */
.badge {
    border-radius: 20px;
    padding: 4px 10px;
    font-weight: 500;
}

/* Modal Enhancements */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-radius: 16px 16px 0 0;
    background: linear-gradient(135deg, #0d9f4f, #076e34);
    color: #fff;
}

.modal-header .close {
    color: #fff;
    opacity: 0.8;
}

.modal-header .close:hover {
    opacity: 1;
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Form Controls */
.form-control {
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: #0d9f4f;
    box-shadow: 0 0 0 3px rgba(13, 159, 79, 0.15);
}

/* Select2 Theme */
.select2-container--bootstrap4 .select2-selection {
    border-radius: 8px !important;
    border: 2px solid #e0e0e0 !important;
    min-height: 38px;
}

.select2-container--bootstrap4.select2-container--focus .select2-selection {
    border-color: #0d9f4f !important;
    box-shadow: 0 0 0 3px rgba(13, 159, 79, 0.15) !important;
}

/* Alert Enhancements */
.alert {
    border-radius: 10px;
    border: none;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #0d9f4f;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #076e34;
}

/* Currency Input */
.currency-display {
    font-weight: 600;
    color: #0d9f4f;
}

/* Topbar Enhancement */
.main-header {
    border-bottom: 3px solid #0d9f4f;
}

/* Content Header */
.content-header h1 {
    font-weight: 700;
    color: #1a3c2a;
}

/* Page Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .small-box {
    animation: fadeInUp 0.4s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .small-box .inner h3 { font-size: 1.5rem; }
    .login-box { width: 95%; }
}
