/* Base Fonts & Scrollbar */
body { 
    font-family: 'Inter', sans-serif; 
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.1); }
::-webkit-scrollbar-thumb { background: rgba(16, 185, 129, 0.2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(16, 185, 129, 0.4); }

/* Custom dropdown scrollbar */
#client-dropdown-content::-webkit-scrollbar { width: 6px; }
#client-dropdown-content::-webkit-scrollbar-track { background: #f1f5f9; }
#client-dropdown-content::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
#client-dropdown-content::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Animations */
@keyframes blob {
    0% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0px, 0px) scale(1); }
}
.animate-blob { animation: blob 10s infinite; }
.animation-delay-2000 { animation-delay: 2s; }
.animation-delay-4000 { animation-delay: 4s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up { animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }

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

/* Theming Variables */
:root {
    --color-primary: #10b981;
    --color-primary-rgb: 16, 185, 129;
    --color-ring: #a7f3d0;
    --color-bg-light: #ecfdf5;
    --color-text-dark: #064e3b;
}

.theme-mtn {
    --color-primary: #eab308; /* yellow-500 */
    --color-primary-rgb: 234, 179, 8;
    --color-ring: #fef08a; /* yellow-200 */
    --color-bg-light: #fefce8; /* yellow-50 */
    --color-text-dark: #713f12; /* yellow-900 */
    --color-row-hover: rgba(254, 252, 232, 0.5);
}

.theme-telkom {
    --color-primary: #2563eb; /* blue-600 */
    --color-primary-rgb: 37, 99, 235;
    --color-ring: #bfdbfe; /* blue-200 */
    --color-bg-light: #eff6ff; /* blue-50 */
    --color-text-dark: #1e3a8a; /* blue-900 */
    --color-row-hover: rgba(239, 246, 255, 0.5);
}

/* Component Classes using Variables */

.tab-btn {
    background-color: rgba(255, 255, 255, 0.5);
    color: #475569; /* slate-600 */
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--color-primary);
    border-color: var(--color-ring);
}

.tab-btn.active {
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(var(--color-primary-rgb), 0.2);
    transform: scale(1.05);
}

.theme-input {
    transition: all 0.3s ease;
}
.theme-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--color-ring);
    background-color: rgba(255, 255, 255, 0.8);
    border-color: var(--color-primary);
}

.theme-spinner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 4px solid var(--color-bg-light);
    border-left-color: var(--color-primary);
    animation: spin 1s linear infinite;
}

.theme-text {
    color: var(--color-primary);
}

.theme-table-header {
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
}

.theme-table-border {
    border-color: var(--color-bg-light);
}

.theme-row:hover {
    background-color: var(--color-row-hover);
}

#login-view:not(.hidden) ~ #floating-buttons {
    display: none !important;
}
