:root {
  
    --color-midnight-blue: #0A192F; 
    --color-slate-gray: #6b7280;   
    --color-light-slate: #CCD6F6;   
    --color-gold-accent: #FFD700;   

   
    --color-primary: #4f46e5;         
    --color-primary-hover: #4338ca;     
    --color-primary-light: #eef2ff;      
    --color-gray-border: #e5e7eb;       
    --color-background: #f9fafb;         
    --color-text-main: #1f2937;        
    --color-text-subtle: #9ca3af;        
}

body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--color-text-main); /* Menggunakan warna teks utama baru */
}



#app-sidebar {
    background-color: #ffffff; /* Latar belakang putih bersih */
    border-right: 1px solid var(--color-gray-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03); /* Shadow yang sangat halus */
    transition: width 0.3s ease;
}

.sidebar-category {
    padding: 1.5rem 1.5rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-subtle);
}

.sidebar-link {
    display: flex;
    align-items: center;
    margin: 0.25rem 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-slate-gray); 
    transition: all 0.2s ease-in-out;
    border-left: 4px solid transparent;
}


.sidebar-link:hover {
    background-color: var(--color-primary-light);
    color: var(--color-primary);
}


.sidebar-link.active {
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    font-weight: 700;
    border-left-color: var(--color-primary);
}


.sidebar-link i {
    stroke-width: 2px;
    transition: all 0.2s ease-in-out;
}

.sidebar-link:hover i,
.sidebar-link.active i {
    color: var(--color-primary);
}



#app-header {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

#app-header #lang-switcher {
    border: 1px solid var(--color-gray-border);
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--color-slate-gray);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor' class='w-5 h-5 text-gray-400'%3e%3cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd' /%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1em 1em;
}

#app-header #lang-switcher:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.25); 
}

#app-header #profile-button {
    outline: none;
}

#app-header #profile-dropdown {
    border: 1px solid var(--color-gray-border);
    border-radius: 0.375rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#app-header #profile-dropdown a {
    transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
}

#app-header #profile-dropdown a:hover {
    background-color: var(--color-primary-light);
    color: var(--color-primary);
}


#main-content {
    background-color: var(--color-background);
}


.bg-white.rounded-lg.shadow-md {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.07), 0 1px 2px 0 rgba(0, 0, 0, 0.04);
    border-radius: 0.75rem;
    background-color: #fff;
}

.bg-gray-50 {
    background-color: #f9fafb;
}


.bg-indigo-600 {
    background-color: var(--color-primary);
    color: white;
    border-radius: 0.375rem;
    padding: 0.6rem 1rem;
    font-weight: 500;
    transition: background-color 0.15s ease-in-out;
}

.bg-indigo-600:hover {
    background-color: var(--color-primary-hover);
}

.text-indigo-600 {
    color: var(--color-primary);
}

.text-indigo-600:hover {
    color: var(--color-primary-hover);
}

.detail-row {
    background-color: var(--color-background);
}

.detail-row td {
    padding: 1.5rem !important;
    border-bottom: 1px solid var(--color-gray-border);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.25rem;
}

.detail-item p:first-child {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.detail-item p:last-child {
    font-weight: 600;
    color: #212529;
}


#bulk-assign-btn {
    background-color: #2563eb;
    color: white;
}
#bulk-assign-btn:hover {
    background-color: #1d4ed8;
}
#bulk-unassign-btn {
    background-color: #f59e0b;
    color: white;
}
#bulk-unassign-btn:hover {
    background-color: #d97706;
}
#bulk-move-dc-btn {
    background-color: #6d28d9;
    color: white;
}
#bulk-move-dc-btn:hover {
    background-color: #5b21b6;
}

.bulk-action-btn:disabled {
    background-color: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}

#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    min-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.toast-fade-out {
    transform: translateX(120%);
    opacity: 0;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-icon {
    width: 20px;
    height: 20px;
}

.toast.toast-info {
    background-color: #3B82F6; /* Blue */
}

.toast.toast-success {
    background-color: #10B981; /* Green */
}

.toast.toast-warning {
    background-color: #F59E0B; /* Amber */
}

.toast.toast-error {
    background-color: #EF4444; /* Red */
}

.undo-button {
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    margin-left: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.undo-button:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


.marker-pin {
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    background: #4F46E5; /* Warna indigo */
    position: absolute;
    transform: rotate(-45deg);
    left: 50%;
    top: 50%;
    margin: -15px 0 0 -15px;
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    line-height: 30px;
}

.marker-pin::after {
    content: '';
    width: 24px;
    height: 24px;
    margin: 3px 0 0 3px;
    background: #fff;
    position: absolute;
    border-radius: 50%;
}

.marker-pin {
    transform-origin: 0 0;
    transform: rotate(-45deg) scale(1);
}

.custom-div-icon .marker-pin {
    transform: rotate(0deg); /* Reset rotasi untuk nomor di dalamnya */
    line-height: 24px;
    font-size: 12px;
    position: relative;
    top: -29px; /* Sesuaikan posisi vertikal nomor */
    left: -12px;
}

.marker-pin {
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    background: #4F46E5;
    position: absolute;
    transform: rotate(-45deg);
    left: 50%;
    top: 50%;
    margin: -15px 0 0 -15px;
    
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    line-height: 30px;
}
.marker-pin-inner-text {
    transform: rotate(45deg); 
    display: block;
}

.custom-div-icon {
    background: none;
    border: none;
}


.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 0.375rem; 
    border: 1px solid transparent;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    cursor: pointer;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    margin-left: 1rem; 
}

.btn-download.btn-primary {
    background-color: #0d6efd; 
    color: #ffffff;
}

.btn-download.btn-primary:hover {
    background-color: #0b5ed7; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-download:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

.btn-download svg {
    margin-right: 0.5rem;
}



/* === NOTIFICATION / TOAST STYLES === */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.toast {
    display: flex;
    align-items: stretch;
    width: 380px;
    max-width: 90vw;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1), 0 3px 6px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #ccc;
    overflow: hidden;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.4s ease;
    position: relative;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    color: #fff;
}

.toast-content {
    padding: 12px 16px 12px 0;
    flex-grow: 1;
}

.toast-title {
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.4;
}

.toast-action {
    display: flex;
    align-items: center;
    padding-right: 8px;
}

.toast-close-btn {
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 24px;
    cursor: pointer;
    padding: 0 8px;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.toast-close-btn:hover {
    opacity: 1;
}

.undo-button {
    background-color: #eef2ff;
    border: 1px solid #c7d2fe;
    color: #4f46e5;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    margin-right: 8px;
}
.undo-button:hover {
    background-color: #c7d2fe;
    color: #3730a3;
}

/* Progress Bar */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    animation: progress-bar 5s linear forwards;
}
.toast[data-restore-id] .toast-progress {
    animation-duration: 60s;
}

@keyframes progress-bar {
    from { width: 100%; }
    to { width: 0%; }
}

/* Toast Colors */
.toast-info { border-left-color: #3b82f6; }
.toast-info .toast-icon { background-color: #3b82f6; }
.toast-success { border-left-color: #10b981; }
.toast-success .toast-icon { background-color: #10b981; }
.toast-warning { border-left-color: #f59e0b; }
.toast-warning .toast-icon { background-color: #f59e0b; }
.toast-error { border-left-color: #ef4444; }
.toast-error .toast-icon { background-color: #ef4444; }

/* Loader for Undo */
.toast .loader {
    width: 20px;
    height: 20px;
    border: 2px solid #a5b4fc;
    border-top-color: #4f46e5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}