/* ============================================================
   LUXURY POLISH THEME - pw-prime panel
   Warna asli dipertahankan (gold #ffc105 + navy #15263f),
   hanya dipoish agar terlihat lebih mewah & fresh.
   Dimuat SETELAH css/app.css sehingga hanya menimpa style.
   ============================================================ */

/* ---------- Google Font premium (dipakai di judul) ---------- */
/* Cormorant Garamond sudah dimuat di layout untuk angka display */

/* ------------------------------------------------------------
   1. BACKGROUND HALAMAN - gradient radial gold glow yang halus
   ------------------------------------------------------------ */
body.antialiased {
    background-color: #f1f5f9;
    background-image:
        radial-gradient(1100px 500px at 85% -10%, rgba(255, 193, 5, 0.07), transparent 60%),
        radial-gradient(900px 480px at -10% 110%, rgba(21, 46, 77, 0.05), transparent 55%);
    background-attachment: fixed;
}

.dark body.antialiased,
body.antialiased.dark {
    background-color: var(--darker, #12263f);
}

/* Frame utama: glow emas lembut di sisi kanan (dark mode) */
[data-theme='legacyfluxdark'] .flex.h-screen {
    background-image:
        radial-gradient(1200px 600px at 90% -5%, rgba(255, 193, 5, 0.05), transparent 60%),
        radial-gradient(900px 500px at -5% 105%, rgba(56, 189, 248, 0.04), transparent 55%);
}

/* ------------------------------------------------------------
   2. SIDEBAR - navy gradient + garis gold + item hover berkilau
   ------------------------------------------------------------ */
aside.bg-base-100 {
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 140px);
    border-right: 1px solid rgba(255, 193, 5, 0.18) !important;
    box-shadow: 1px 0 18px rgba(21, 46, 77, 0.06);
}

[data-theme='legacyfluxdark'] aside.bg-base-100 {
    background-image: linear-gradient(180deg, rgba(255, 193, 5, 0.03), rgba(255, 255, 255, 0.01) 200px);
    border-right: 1px solid rgba(255, 193, 5, 0.12) !important;
    box-shadow: 1px 0 24px rgba(0, 0, 0, 0.35);
}

/* Link sidebar: hover dengan indikator gold */
aside nav a {
    transition: all .25s cubic-bezier(.4, 0, .2, 1);
    border-radius: 0.65rem;
    position: relative;
}

aside nav a:hover {
    background-color: rgba(255, 193, 5, 0.09);
    transform: translateX(3px);
}

aside nav a.active,
aside nav a[aria-current='page'] {
    background-image: linear-gradient(90deg, rgba(255, 193, 5, 0.16), rgba(255, 193, 5, 0.04));
    box-shadow: inset 3px 0 0 0 #ffc105;
}

/* ------------------------------------------------------------
   3. NAVBAR - efek kaca (glassmorphism) + underline gold
   ------------------------------------------------------------ */
header.sticky.top-0 {
    background-color: rgba(255, 255, 255, 0.82) !important;
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    backdrop-filter: blur(14px) saturate(160%);
    border-bottom: 1px solid rgba(255, 193, 5, 0.25) !important;
    box-shadow: 0 4px 24px rgba(21, 46, 77, 0.07);
}

[data-theme='legacyfluxdark'] header.sticky.top-0,
.dark header.sticky.top-0 {
    background-color: rgba(11, 18, 32, 0.78) !important;
    border-bottom: 1px solid rgba(255, 193, 5, 0.16) !important;
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.4);
}

/* Garis emas tipis di bawah navbar */
header.sticky.top-0::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 193, 5, 0.55), transparent);
    pointer-events: none;
}

/* ------------------------------------------------------------
   4. KARTU - border gold tipis, hover terangkat + glow lembut
   ------------------------------------------------------------ */
.bg-white.rounded-lg,
.bg-white.rounded-xl,
.bg-base-100.rounded-lg,
.bg-base-100.rounded-xl,
.c-card {
    border: 1px solid rgba(255, 193, 5, 0.14);
    transition: transform .28s cubic-bezier(.4, 0, .2, 1),
                box-shadow .28s cubic-bezier(.4, 0, .2, 1),
                border-color .28s ease;
}

.dark .bg-white.rounded-lg,
.dark .bg-white.rounded-xl,
[data-theme='legacyfluxdark'] .bg-base-100.rounded-lg,
[data-theme='legacyfluxdark'] .bg-base-100.rounded-xl {
    border-color: rgba(255, 193, 5, 0.10);
}

.c-card:hover,
.bg-white.rounded-lg:hover,
.bg-white.rounded-xl:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 193, 5, 0.38);
    box-shadow: 0 14px 34px rgba(21, 46, 77, 0.12), 0 2px 8px rgba(255, 193, 5, 0.10);
}

.dark .bg-white.rounded-lg:hover,
.dark .bg-white.rounded-xl:hover,
[data-theme='legacyfluxdark'] .bg-base-100.rounded-lg:hover,
[data-theme='legacyfluxdark'] .bg-base-100.rounded-xl:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 2px 10px rgba(255, 193, 5, 0.08);
}

/* Kartu widget sidebar (server status dll) */
.p-3.rounded-xl.bg-base-200\/50 {
    border: 1px solid rgba(255, 193, 5, 0.12);
    background-image: linear-gradient(145deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
    transition: border-color .25s ease, transform .25s ease;
}

.p-3.rounded-xl.bg-base-200\/50:hover {
    border-color: rgba(255, 193, 5, 0.30);
    transform: translateY(-2px);
}

[data-theme='legacyfluxdark'] .p-3.rounded-xl.bg-base-200\/50 {
    background-image: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
}

/* ------------------------------------------------------------
   5. TOMBOL GOLD - gradient + kilau menyapu saat hover
   ------------------------------------------------------------ */
.btn.bg-primary,
button.bg-primary,
a.bg-primary {
    background-image: linear-gradient(160deg, #ffd633 0%, #ffc105 45%, #f0aa00 100%) !important;
    border: 1px solid rgba(180, 83, 9, 0.25);
    box-shadow: 0 2px 10px rgba(255, 193, 5, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45);
    position: relative;
    overflow: hidden;
    transition: box-shadow .25s ease, transform .15s ease, filter .2s ease;
}

.btn.bg-primary:hover,
button.bg-primary:hover,
a.bg-primary:hover {
    box-shadow: 0 6px 22px rgba(255, 193, 5, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.btn.bg-primary:active,
button.bg-primary:active,
a.bg-primary:active {
    transform: translateY(0);
}

/* Kilau menyapu */
.btn.bg-primary::before,
button.bg-primary::before,
a.bg-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: skewX(-20deg);
    transition: none;
}

.btn.bg-primary:hover::before,
button.bg-primary:hover::before,
a.bg-primary:hover::before {
    animation: gold-sweep .8s ease forwards;
}

@keyframes gold-sweep {
    to { left: 130%; }
}

/* ------------------------------------------------------------
   6. SCROLLBAR - ramping & senada
   ------------------------------------------------------------ */
::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

::-webkit-scrollbar-track {
    background: rgba(21, 46, 77, 0.06);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #f5c518, #d99e00);
    border-radius: 99px;
    border: 2px solid rgba(0, 0, 0, 0);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ffd633, #f0aa00);
}

.dark ::-webkit-scrollbar-track,
[data-theme='legacyfluxdark'] ::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #d99e00 rgba(21, 46, 77, 0.08);
}

/* ------------------------------------------------------------
   7. BADGE NEW - shimmer gold yang lebih hidup
   ------------------------------------------------------------ */
@keyframes badge-shimmer {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.45); }
    50%      { box-shadow: 0 0 0 5px rgba(37, 99, 235, 0); }
}

.animate-pulse.bg-blue-500 {
    animation: badge-shimmer 1.6s ease-in-out infinite;
}

/* ------------------------------------------------------------
   8. ANGKA & JUDUL - sentuhan tipografi mewah
   ------------------------------------------------------------ */
.text-2xl.font-bold,
.text-2xl.font-black {
    background-image: linear-gradient(135deg, #152e4d 30%, #b45309 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dark .text-2xl.font-bold,
.dark .text-2xl.font-black,
[data-theme='legacyfluxdark'] .text-2xl.font-bold,
[data-theme='legacyfluxdark'] .text-2xl.font-black {
    background-image: linear-gradient(135deg, #ffffff 20%, #ffc105 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Judul section dengan aksen garis gold */
h1.font-bold, h1.font-semibold {
    position: relative;
}

/* ------------------------------------------------------------
   9. STATUS PULSE DOT - cincin memancar
   ------------------------------------------------------------ */
@keyframes pulse-ring {
    0%   { transform: scale(1); opacity: .8; }
    100% { transform: scale(2.6); opacity: 0; }
}

.relative.flex.h-3.w-3 > .animate-ping {
    animation: pulse-ring 1.6s cubic-bezier(0, 0, .2, 1) infinite !important;
}

/* ------------------------------------------------------------
   10. FOCUS STATE - ring gold
   ------------------------------------------------------------ */
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: none;
    border-color: rgba(255, 193, 5, 0.55) !important;
    box-shadow: 0 0 0 3px rgba(255, 193, 5, 0.18);
    transition: box-shadow .2s ease, border-color .2s ease;
}

/* ------------------------------------------------------------
   11. TRANSISI GLOBAL HALUS
   ------------------------------------------------------------ */
a, button, .btn {
    transition: color .18s ease, background-color .18s ease,
                border-color .18s ease, box-shadow .22s ease, transform .18s ease;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
