/* ==============================================================================
 * File     : Assets/css/tailwind.css
 * Role     : Main Stylesheet (Pure CSS Design System - Browser Ready)
 * Deskripsi: Kompilasi native komponen UI/UX, variabel warna dinamis, 
 *            soft-shadow, dan aksesibilitas tanpa memerlukan Node/CLI build.
 * ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

/* 1. VARIABEL TEMA DINAMIS (Dapat di-override oleh pengaturan warna Admin) */
:root {
    --color-primary-50: #EFF6FF;
    --color-primary-600: #2563EB;
    --color-primary-900: #1E3A8A;
    --color-emerald-50: #ECFDF5;
    --color-emerald-500: #10B981;
    --color-emerald-600: #059669;
    --color-slate-50: #F8FAFC;
    --color-slate-500: #64748B;
    --color-slate-900: #0F172A;
}

/* 2. BASE & TYPOGRAPHY */
html {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.font-sans {
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--color-slate-50);
    color: var(--color-slate-900);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: var(--color-primary-600);
    color: #FFFFFF;
}

/* 3. REUSABLE UI COMPONENTS */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.625rem 1.5rem;
    background-color: var(--color-primary-600);
    color: #FFFFFF;
    font-weight: 500;
    border-radius: 9999px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}
.btn-primary:hover {
    background-color: var(--color-primary-900);
}
.btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px var(--color-primary-600);
}
.btn-primary:active {
    transform: scale(0.95);
}

.btn-success {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.625rem 1.5rem;
    background-color: var(--color-emerald-500);
    color: #FFFFFF;
    font-weight: 500;
    border-radius: 9999px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}
.btn-success:hover {
    background-color: var(--color-emerald-600);
}
.btn-success:focus {
    outline: none;
    box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px var(--color-emerald-500);
}
.btn-success:active {
    transform: scale(0.95);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.625rem 1.5rem;
    border: 1px solid #CBD5E1;
    background-color: #FFFFFF;
    color: #334155;
    font-weight: 500;
    border-radius: 9999px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}
.btn-outline:hover {
    background-color: var(--color-slate-50);
    color: var(--color-primary-600);
}
.btn-outline:focus {
    outline: none;
    box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px #CBD5E1;
}
.btn-outline:active {
    transform: scale(0.95);
}

/* Card & Soft Shadow */
.card {
    background-color: #FFFFFF;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Frosted Glass Navigation */
.glass-panel {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: rgba(226, 232, 240, 0.5);
}

/* 4. UTILITIES & ANIMATIONS */
.touch-target {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

@keyframes pulseSkeleton {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.skeleton {
    animation: pulseSkeleton 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    background-color: #E2E8F0;
    border-radius: 0.75rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
    animation: fadeIn 0.25s ease-out forwards;
}

/* Hilangkan ring biru saat klik mouse/tap layar, tetap tampil saat navigasi keyboard (TAB) */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
summary:focus:not(:focus-visible),
[role="button"]:focus:not(:focus-visible),
[role="tab"]:focus:not(:focus-visible) {
    outline: none !important;
    --tw-ring-shadow: 0 0 #0000 !important;
    --tw-ring-offset-shadow: 0 0 #0000 !important;
    --tw-inset-ring-shadow: 0 0 #0000 !important;
}

/* Hilangkan kilatan kotak biru bawaan browser mobile (Android/iOS) saat disentuh */
a, button {
    -webkit-tap-highlight-color: transparent;
}