@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #0056b3;
    --primary-dark: #003d80;
    --secondary: #ffcc00;
    --surface: #ffffff;
    --bg-body: #f0f4f8;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    background-image:
        radial-gradient(at 0% 0%, rgba(0, 86, 179, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(0, 86, 179, 0.05) 0px, transparent 50%);
    color: #334155;
}

.pro-card {
    background: var(--surface);
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border-radius: 1.5rem;
}

.header-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.header-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.btn-official {
    background-color: var(--primary);
    color: white;
    transition: all 0.2s ease;
    border-bottom: 3px solid var(--primary-dark);
}

.btn-official:hover:not(:disabled) {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 86, 179, 0.3);
}

.btn-official:active:not(:disabled) {
    transform: translateY(1px);
    border-bottom-width: 0px;
    margin-top: 3px;
}

.btn-official:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    border-bottom-width: 0px;
}

.tab-active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.tab-inactive {
    background-color: white;
    color: #64748b;
    border-color: #e2e8f0;
}

/* Hide scrollbar */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
}

/* Custom Checkbox Style */
.custom-checkbox {
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 0.3rem;
    border: 2px solid #cbd5e1;
    cursor: pointer;
    accent-color: #ef4444;
    /* Red for delete actions */
}

/* Toggle Switch */
.toggle-checkbox:checked {
    right: 0;
    border-color: #10B981;
}

.toggle-checkbox:checked+.toggle-label {
    background-color: #10B981;
}

/* --- TAMBAHAN STYLE MODAL --- */
.modal {
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    /* JS will set display:flex when opening */
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    margin: auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 1.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPop {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}