/* ══════════════════════════════════════════════════════════════════════════
   UIPRO MAX DESIGN SYSTEM — PT. INTAN DIGITAL INTERNET
   State-of-the-art UI/UX for Filament v3 Web Admin & Auth Portal
   ══════════════════════════════════════════════════════════════════════════ */

/* ── 1. GLOBAL TYPOGRAPHY & SMOOTHING ── */
:root {
    --uipro-brand: #0284c7;
    --uipro-brand-dark: #0369a1;
    --uipro-brand-light: #38bdf8;
    --uipro-brand-glow: rgba(2, 132, 199, 0.25);
    --uipro-surface: #ffffff;
    --uipro-ink: #0f172a;
    --uipro-ink-muted: #64748b;
    --uipro-border: #e2e8f0;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Modern Minimalist Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ══════════════════════════════════════════════════════════════════════════
   2. AUTH & LOGIN PORTAL — PRO MAX AESTHETICS
   ══════════════════════════════════════════════════════════════════════════ */

/* Background Canvas with Mesh & Grid */
.fi-simple-layout {
    position: relative !important;
    min-height: 100vh !important;
    background: 
        radial-gradient(circle at 10% 15%, rgba(2, 132, 199, 0.16) 0%, transparent 40%),
        radial-gradient(circle at 90% 85%, rgba(56, 189, 248, 0.14) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.05) 0%, transparent 60%),
        linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%) !important;
    overflow-x: hidden !important;
}

/* Ambient Dot Grid Texture */
.fi-simple-layout::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: 
        radial-gradient(rgba(2, 132, 199, 0.15) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.65;
}

/* Floating Ambient Glow Light */
.fi-simple-layout::after {
    content: '';
    position: fixed;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: min(700px, 90vw);
    height: 380px;
    background: radial-gradient(ellipse at center, rgba(2, 132, 199, 0.20) 0%, rgba(56, 189, 248, 0.08) 50%, transparent 75%);
    filter: blur(55px);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: uiproAmbientPulse 7s ease-in-out infinite alternate;
}

@keyframes uiproAmbientPulse {
    0% { transform: translateX(-50%) scale(0.95); opacity: 0.7; }
    100% { transform: translateX(-50%) scale(1.08); opacity: 1; }
}

/* Glassmorphism Main Card */
.fi-simple-main-ctn {
    position: relative !important;
    z-index: 1 !important;
    padding: 24px 16px !important;
}

.fi-simple-main {
    position: relative !important;
    z-index: 2 !important;
    background: rgba(255, 255, 255, 0.90) !important;
    backdrop-filter: blur(24px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
    border: 1px solid rgba(255, 255, 255, 0.85) !important;
    box-shadow: 
        0 24px 60px -12px rgba(2, 132, 199, 0.18),
        0 0 0 1px rgba(2, 132, 199, 0.08),
        0 2px 6px rgba(15, 23, 42, 0.03) !important;
    border-radius: 28px !important;
    padding: clamp(28px, 4vw, 42px) clamp(24px, 4vw, 40px) !important;
    max-width: 470px !important;
    margin: 24px auto !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.fi-simple-main:hover {
    box-shadow: 
        0 32px 72px -16px rgba(2, 132, 199, 0.24),
        0 0 0 1px rgba(2, 132, 199, 0.12),
        0 4px 10px rgba(15, 23, 42, 0.04) !important;
}

/* Card Header & Brand Presentation */
.uipro-login-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.uipro-login-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.uipro-logo-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    background: #ffffff;
    border: 1px solid rgba(2, 132, 199, 0.15);
    border-radius: 18px;
    box-shadow: 0 8px 24px -4px rgba(2, 132, 199, 0.12);
    margin-bottom: 8px;
}

.uipro-logo-glow {
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.35), rgba(56, 189, 248, 0.15));
    border-radius: 20px;
    filter: blur(8px);
    z-index: -1;
    opacity: 0.7;
}

.uipro-logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Live Cloud Pill */
.uipro-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(2, 132, 199, 0.08);
    border: 1px solid rgba(2, 132, 199, 0.20);
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #0369a1;
    letter-spacing: 0.02em;
    margin-bottom: 2px;
}

.uipro-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: uiproDotPulse 2s infinite;
}

@keyframes uiproDotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.25); }
}

.uipro-title {
    font-size: clamp(1.35rem, 2.5vw, 1.6rem);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.025em;
    line-height: 1.25;
    margin: 0;
}

.uipro-subtitle {
    font-size: 0.825rem;
    color: #64748b;
    line-height: 1.45;
    margin: 0;
    max-width: 320px;
}

/* Form Polish */
.fi-simple-main .fi-form {
    gap: 18px !important;
}

.fi-simple-main .fi-fo-field-wrp-label span {
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    letter-spacing: -0.01em !important;
}

.fi-simple-main .fi-input-wrp {
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 14px !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) inset !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.fi-simple-main .fi-input-wrp:focus-within {
    background: #ffffff !important;
    border-color: #0284c7 !important;
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.16), 0 1px 3px rgba(15, 23, 42, 0.03) inset !important;
}

.fi-simple-main .fi-input {
    font-size: 0.95rem !important;
    color: #0f172a !important;
    font-weight: 500 !important;
    padding: 0.65rem 0.9rem !important;
}

/* Remember Checkbox */
.fi-simple-main .fi-checkbox-input {
    border-radius: 6px !important;
    border-color: #cbd5e1 !important;
    color: #0284c7 !important;
}

.fi-simple-main .fi-checkbox-input:focus {
    --tw-ring-color: rgba(2, 132, 199, 0.25) !important;
}

/* Submit Action Button — PRO MAX Glowing CTA */
.fi-simple-main button[type="submit"],
.fi-simple-main .fi-btn-color-primary,
.fi-simple-main .fi-ac-btn-action {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    border: none !important;
    border-radius: 14px !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.01em !important;
    padding: 0.75rem 1.5rem !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px -2px rgba(2, 132, 199, 0.45) !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    width: 100% !important;
    margin-top: 4px !important;
}

.fi-simple-main button[type="submit"]::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -70%;
    width: 50%;
    height: 200%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.28), transparent);
    transform: rotate(25deg);
    transition: all 0.65s ease;
}

.fi-simple-main button[type="submit"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 28px -2px rgba(2, 132, 199, 0.55) !important;
}

.fi-simple-main button[type="submit"]:hover::after {
    left: 130%;
}

.fi-simple-main button[type="submit"]:active {
    transform: translateY(0) !important;
}

/* Security Row Footer */
.uipro-security-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-top: 14px;
    margin-top: 6px;
    border-top: 1px dashed #e2e8f0;
}

.uipro-sec-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
}

.uipro-sec-icon {
    width: 13px;
    height: 13px;
    color: #0284c7;
    flex-shrink: 0;
}

.uipro-sec-dot {
    color: #cbd5e1;
    font-size: 0.7rem;
}

.uipro-footer-credit {
    text-align: center;
    font-size: 0.70rem;
    color: #94a3b8;
    margin-top: 4px;
}

/* ══════════════════════════════════════════════════════════════════════════
   3. ADMIN PANEL — AURORA GLASSMORPHISM PRO MAX (UUPM.CC SPEC)
   Active globally across all pages: Dashboard, Jadwal, Tables, Forms
   ══════════════════════════════════════════════════════════════════════════ */

/* Global Atmosphere Canvas */
body, .fi-layout {
    background: 
        radial-gradient(circle at 10% 12%, rgba(2, 132, 199, 0.12) 0%, transparent 42%),
        radial-gradient(circle at 90% 82%, rgba(16, 185, 129, 0.10) 0%, transparent 45%),
        radial-gradient(circle at 50% 45%, rgba(139, 92, 246, 0.06) 0%, transparent 55%),
        linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%) !important;
    background-attachment: fixed !important;
    min-height: 100vh !important;
}

.fi-layout::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(rgba(2, 132, 199, 0.14) 1.2px, transparent 1.2px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.65;
}

/* Floating Ambient Aura Orbs */
.fi-layout::after {
    content: '';
    position: fixed;
    top: 15%;
    right: 5%;
    width: min(500px, 60vw);
    height: 400px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(16, 185, 129, 0.08) 50%, transparent 75%);
    filter: blur(60px);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* Topbar Polish — Frosted Acrylic */
.fi-topbar {
    background: rgba(255, 255, 255, 0.80) !important;
    backdrop-filter: blur(24px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.85) !important;
    box-shadow: 0 4px 24px -6px rgba(2, 132, 199, 0.06) !important;
}

/* Sidebar Navigation — Floating Frosted Glass Dock */
.fi-sidebar {
    background: rgba(255, 255, 255, 0.84) !important;
    backdrop-filter: blur(24px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
    border-right: 1px solid rgba(226, 232, 240, 0.85) !important;
    box-shadow: 4px 0 24px -4px rgba(2, 132, 199, 0.04) !important;
}

.fi-sidebar-header {
    border-bottom: 1px solid rgba(226, 232, 240, 0.6) !important;
}

/* Sidebar Items */
.fi-sidebar-item a,
.fi-sidebar-item .fi-sidebar-item-btn {
    border-radius: 14px !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    padding: 0.62rem 0.95rem !important;
    font-weight: 600 !important;
    color: #475569 !important;
}

.fi-sidebar-item a:hover {
    background: rgba(2, 132, 199, 0.08) !important;
    color: #0284c7 !important;
    transform: translateX(4px) !important;
}

/* Active Nav Item with Glowing Pill Accent */
.fi-sidebar-item-active > a,
.fi-sidebar-item-active > .fi-sidebar-item-btn {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.16) 0%, rgba(56, 189, 248, 0.08) 100%) !important;
    color: #0284c7 !important;
    font-weight: 800 !important;
    border-radius: 14px !important;
    position: relative !important;
    box-shadow: 0 4px 14px -2px rgba(2, 132, 199, 0.18), 0 0 0 1px rgba(2, 132, 199, 0.20) inset !important;
}

.fi-sidebar-item-active > a::before,
.fi-sidebar-item-active > .fi-sidebar-item-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 22%;
    bottom: 22%;
    width: 4px;
    border-radius: 0 6px 6px 0;
    background: linear-gradient(180deg, #0284c7 0%, #38bdf8 100%);
    box-shadow: 0 0 8px #0284c7;
}

/* Sidebar Group Label */
.fi-sidebar-group-label {
    font-size: 0.70rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.07em !important;
    color: #94a3b8 !important;
    padding-left: 0.95rem !important;
}

/* Tables & Sections on ALL PAGES (Jadwal, Absensi, Karyawan, etc.) */
.fi-ta-ctn, .fi-section, .fi-modal-window, .fi-fo-wizard {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(24px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
    border-radius: 22px !important;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    box-shadow: 
        0 20px 45px -12px rgba(15, 23, 42, 0.06),
        0 0 0 1px rgba(2, 132, 199, 0.06),
        0 2px 6px rgba(0, 0, 0, 0.02) !important;
    overflow: hidden !important;
}

.fi-ta-header-cell {
    font-weight: 800 !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    color: #475569 !important;
    background: rgba(248, 250, 252, 0.85) !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9) !important;
}

.fi-ta-row {
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.fi-ta-row:hover {
    background: rgba(2, 132, 199, 0.04) !important;
}

/* Primary Action Buttons — UUPM Glowing CTA */
.fi-btn-color-primary,
button[type="submit"].fi-btn {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 16px -1px rgba(2, 132, 199, 0.42) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
}

.fi-btn-color-primary:hover,
button[type="submit"].fi-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 26px -2px rgba(2, 132, 199, 0.55) !important;
}

.fi-btn-color-primary:active,
button[type="submit"].fi-btn:active {
    transform: translateY(0) !important;
}

/* Badges & Status Pills */
.fi-badge {
    border-radius: 9999px !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
    padding: 3px 10px !important;
}

/* Modals */
.fi-modal-window {
    border-radius: 24px !important;
    box-shadow: 0 30px 70px -15px rgba(15, 23, 42, 0.28) !important;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
}
