/* 
 * Airlangga Design System
 * Core UI/UX Styles 
 * Based on OPAC Premium Experience
 */

/* Custom Font Import Fallback */
/* Custom Font Import Fallback managed via lexend.css */

/* Material Symbols config */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
    display: inline-block;
    vertical-align: middle;
}

.symbol-filled {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Base Layout Tweaks */
:root {
    --primary: #003B73;
    --accent: #FFCB05;
}

::selection {
    background: rgba(255, 203, 5, 0.3);
    color: var(--primary);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 20px;
    border: 3px solid transparent;
    background-clip: content-box;
}

.dark ::-webkit-scrollbar-thumb {
    background: #475569;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-entry {
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.skeleton {
    background: linear-gradient(90deg,
            rgba(226, 232, 240, 0.5) 25%,
            rgba(241, 245, 249, 0.8) 50%,
            rgba(226, 232, 240, 0.5) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
}

.dark .skeleton {
    background: linear-gradient(90deg,
            rgba(30, 41, 59, 0.5) 25%,
            rgba(51, 65, 85, 0.8) 50%,
            rgba(30, 41, 59, 0.5) 75%);
    background-size: 200% 100%;
}

/* Premium Effects */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.dark .glass-card {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Text Highlighting */
mark {
    background: rgba(255, 203, 5, 0.25);
    color: inherit;
    padding: 0 2px;
    border-radius: 4px;
    font-weight: 600;
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Button Hover Effects */
button:not(:disabled):active {
    transform: scale(0.98);
}

/* Input Focus Effects */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Smooth Transitions */
* {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Form Elements */
.ads-input {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    width: 100%;
    transition: all 0.3s ease;
}

.dark .ads-input {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.ads-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 59, 115, 0.15);
}

/* Components */
.badge {
    background: #f1f5f9;
    color: #334155;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dark .badge {
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    border-color: rgba(255, 255, 255, 0.05);
}

.action-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(0, 59, 115, 0.2);
}

/* Progress Bar Generic */
.progress-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 60;
    height: 4px;
    background-color: var(--accent);
    width: 0%;
    transition: width 0.2s ease;
}