/* CSS untuk DATA CENTER MUMBUL */
:root {
    --primary-color: #1e3a8a; /* Biru lebih gelap */
    --secondary-color: #172554; /* Biru sangat gelap */
    --success-color: #059669;
    --danger-color: #dc2626;
    --warning-color: #d97706;
    --info-color: #0891b2;
    --light-bg: #f8fafc;
    --dark-bg: #0f172a;
    --gray: #475569;
    --light-gray: #e2e8f0;
    --border-radius: 12px;
    --box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
    color: #1e293b;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(23, 37, 84, 0.05) 0%, transparent 20%),
                radial-gradient(circle at 90% 80%, rgba(5, 150, 105, 0.05) 0%, transparent 20%);
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 0;
    box-shadow: var(--box-shadow);
    position: relative;
    z-index: 100;
    background: rgba(15, 23, 42, 0.95); /* Biru gelap elegan */
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.logo i {
    margin-right: 10px;
}

.nav-links {
    display: flex;
    gap: 15px;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 1000;
    display: none;
    pointer-events: none; /* Tidak akan menerima klik saat tidak aktif */
}

.dropdown.show {
    display: block;
    pointer-events: auto; /* Menerima klik saat aktif */
}

.dropdown-item {
    display: block;
    padding: 10px 15px;
    color: var(--dark-bg);
    text-decoration: none;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: var(--light-gray);
}

/* Main Content */
.main-content {
    padding: 30px 0;
}

.card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px -1px rgba(30, 64, 175, 0.1), 0 2px 4px -1px rgba(30, 64, 175, 0.06);
    padding: 30px;
    margin-bottom: 25px;
    transition: var(--transition);
    border: 1px solid rgba(226, 232, 240, 0.7);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(30, 64, 175, 0.1), 0 10px 10px -5px rgba(30, 64, 175, 0.04);
}

.card-header {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-color);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-gray);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

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

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.form-control:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
}

.hidden {
    display: none !important;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 4px 6px -1px rgba(30, 64, 175, 0.3), 0 2px 4px -1px rgba(30, 64, 175, 0.1);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.4), 0 4px 6px -2px rgba(37, 99, 235, 0.2);
}

.btn:hover::before {
    left: 100%;
}

.btn:disabled {
    background-color: var(--gray);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #0d9e6d);
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3), 0 2px 4px -1px rgba(16, 185, 129, 0.1);
}

.btn-success:hover {
    background: linear-gradient(135deg, #0d9e6d, var(--success-color));
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #dc2626);
    box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.3), 0 2px 4px -1px rgba(239, 68, 68, 0.1);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626, var(--danger-color));
}

.btn-block {
    display: block;
    width: 100%;
}

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

/* Table Styles */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.table th,
.table td {
    padding: 14px 15px;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

.table th {
    background: linear-gradient(to bottom, #f1f5f9, #e2e8f0);
    font-weight: 600;
    color: var(--dark-bg);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    position: relative;
}

.table th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--success-color));
}

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

.table tr:nth-child(even) {
    background-color: #f8fafc;
}

.table tr:hover {
    background-color: #f1f5f9;
    transition: background-color 0.2s ease;
}

.table-success-header th {
    background: linear-gradient(to bottom, #d1fae5, #a7f3d0) !important;
    color: #065f46 !important;
}

.table-danger-header th {
    background: linear-gradient(to bottom, #fee2e2, #fecaca) !important;
    color: #991b1b !important;
}

.table-success-row {
    background-color: #f0fdfa;
}

.table-danger-row {
    background-color: #fef2f2;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Responsive table styling for rekap data */
@media (max-width: 768px) {
    .table th,
    .table td {
        min-width: 120px;
        padding: 8px 10px;
    }

    .table th:nth-child(1),
    .table td:nth-child(1) {
        min-width: 150px;
    }

    .table th:nth-child(2),
    .table td:nth-child(2) {
        min-width: 120px;
    }

    .table th:nth-child(3),
    .table td:nth-child(3) {
        min-width: 100px;
    }
}

@media (max-width: 576px) {
    .table th,
    .table td {
        min-width: 100px;
        font-size: 0.9rem;
    }

    .table th:nth-child(1),
    .table td:nth-child(1) {
        min-width: 120px;
    }

    .table th:nth-child(2),
    .table td:nth-child(2) {
        min-width: 100px;
    }

    .table th:nth-child(3),
    .table td:nth-child(3) {
        min-width: 80px;
    }
}

/* Checkbox Styles */
.checkbox-group {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

.checkbox-group label {
    cursor: pointer;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* Tidak akan menerima klik saat tidak aktif */
}

.modal.show {
    display: flex;
    pointer-events: auto; /* Menerima klik saat aktif */
}

.modal-content {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    overflow: hidden;
    animation: modalAppear 0.3s ease;
}

@keyframes modalAppear {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header {
    background: linear-gradient(135deg, var(--success-color), var(--primary-color));
    color: white;
    padding: 20px;
    text-align: center;
}

.modal-body {
    padding: 30px;
    text-align: center;
}

.modal-footer {
    padding: 15px 30px 30px;
    text-align: center;
}

.modal-icon {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 20px;
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.modal-message {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        align-items: center;
    }
    
    .card {
        padding: 20px 15px;
    }
    
    .table {
        font-size: 0.9rem;
    }
    
    .table th,
    .table td {
        padding: 8px 5px;
    }
}

/* Animation for form elements */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* Status indicators */
.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-success {
    background-color: #d4edda;
    color: #155724;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 40px;
    border-top: 1px solid var(--light-gray);
}

/* Animasi kedip-kedip untuk error message */
.blink-error {
    animation: blink-animation 1s infinite;
    color: #dc3545 !important;
    font-weight: 500;
}

@keyframes blink-animation {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}