/* ==============================================================================
   METIN2 ADMIN PANEL — DESIGN SYSTEM & CORE STYLESHEET
   Clean Architecture, GPU-Accelerated, Cross-Browser Normalized
   ============================================================================== */

/* ─── 1. DESIGN TOKENS & SYSTEM VARIABLES ──────────────────────────────────── */
.error-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 420px;
    pointer-events: none;
}

@keyframes errorHandlerSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes errorHandlerSlideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

@keyframes confirmModalIn {
    from { opacity: 0; transform: scale(0.95) translateY(-10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

#custom-confirm-modal { display: none; }

:root {
    /* Brand & Accent */
    --color-primary: #00d4ff;
    --color-primary-hover: #00b8e6;
    --color-primary-glow: rgba(0, 212, 255, 0.4);
    --color-primary-subtle: rgba(0, 212, 255, 0.1);
    --color-primary-border: rgba(0, 212, 255, 0.15);

    /* Dark Surfaces */
    --surface-0: #060a10; /* Deepest Page BG */
    --surface-1: #0d1520; /* Card & Container BG */
    --surface-2: #1e2a3a; /* Elevated BG / Header */
    --surface-3: #1a2d42; /* Borders & Dividers */
    --surface-4: #2a4158; /* Active / Hover states */

    /* Typography & Text Colors */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Form & Input Tokens */
    --input-bg: rgba(26, 45, 66, 0.5);
    --input-bg-focus: rgba(26, 45, 66, 0.8);
    --input-border: rgba(0, 212, 255, 0.1);
    --input-border-focus: rgba(0, 212, 255, 0.4);
    --input-shadow-focus: 0 0 0 3px rgba(0, 212, 255, 0.1), 0 0 20px rgba(0, 212, 255, 0.05);
    --autofill-bg: #152538;

    /* Metrics & Transitions */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
}

/* ─── 2. GLOBAL RESET & BASE NORMALIZATION ──────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    color-scheme: dark;
    scroll-behavior: smooth;
    background-color: var(--surface-0);
    color: var(--text-main);
}

body {
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    margin: 0;
    padding: 0;
    background-color: var(--surface-0);
}

/* Form Elements Reset */
button, input, optgroup, select, textarea {
    font: inherit;
    color: inherit;
    margin: 0;
    line-height: inherit;
}

button, [type="button"], [type="reset"], [type="submit"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    background: none;
    border: none;
}

/* Remove number spinners */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Placeholder and Selection */
::placeholder {
    color: var(--text-dim);
    opacity: 1;
}
::selection {
    background: var(--color-primary);
    color: #000;
}

/* Image Rendering (Pixel Art / Metin2 Items) */
img[src*="icon"], img[src*="item"], .pixelated {
    image-rendering: pixelated;
}

/* ─── 3. CUSTOM SCROLLBARS ─────────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--surface-3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.4);
}

/* Scrollbar Utilities */
.scrollbar-thin {
    scrollbar-width: thin;
    scrollbar-color: var(--surface-3) transparent;
}
.scrollbar-thin::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.scrollbar-thin::-webkit-scrollbar-track {
    background: transparent;
}
.scrollbar-thin::-webkit-scrollbar-thumb {
    background: var(--surface-3);
    border-radius: 3px;
}
.scrollbar-thin::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.5);
}

.legend-scroll {
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.25) transparent;
}
.legend-scroll::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}
.legend-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.legend-scroll::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.25);
    border-radius: 4px;
}
.legend-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-glow);
}

/* ─── 4. PWA DRAGGABLE WINDOWS & SAFE AREAS ────────────────────────────────── */
.pwa-draggable-header {
    -webkit-app-region: drag;
    app-region: drag;
    user-select: none;
}
.pwa-draggable-header button,
.pwa-draggable-header a,
.pwa-draggable-header input,
.pwa-draggable-header select,
.pwa-draggable-header textarea,
.pwa-draggable-header [role="button"],
.pwa-draggable-header .cursor-pointer,
.pwa-draggable-header [x-data],
.pwa-draggable-header [x-show],
.pwa-draggable-header .relative,
.pwa-draggable-header .dropdown-menu {
    -webkit-app-region: no-drag;
    app-region: no-drag;
}

@supports (padding: max(0px)) {
    header.pwa-draggable-header {
        padding-top: env(safe-area-inset-top);
        padding-left: max(0.75rem, env(safe-area-inset-left));
        padding-right: max(0.75rem, env(safe-area-inset-right));
    }
    body {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
    main {
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
}

/* ─── 5. UI COMPONENTS & WIDGETS ───────────────────────────────────────────── */

/* Lucide Icon Sizing */
i[data-lucide], [data-lucide] {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    vertical-align: middle;
    flex-shrink: 0;
}
i[data-lucide].w-4.h-4, [data-lucide].w-4.h-4 { width: 1rem; height: 1rem; }
i[data-lucide].w-5.h-5, [data-lucide].w-5.h-5 { width: 1.25rem; height: 1.25rem; }

/* Stat Inputs */
.stat-input {
    width: 100px;
    max-width: 100%;
    padding: 4px 8px;
    font-size: 12px;
    background: #1e1e2e;
    border: 1px solid #4d4d6c;
    color: #fff;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.stat-input:focus {
    border-color: #06b6d4;
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.25);
}
.stat-input:hover {
    border-color: #5d5d7c;
}

/* Sidebar Collapsed State */
.sidebar-collapsed .sidebar-main { width: 4rem !important; }
.sidebar-collapsed .sidebar-main .sidebar-text { display: none !important; }
.sidebar-collapsed .sidebar-main .sidebar-link { justify-content: center !important; padding-left: 0 !important; padding-right: 0 !important; }
.sidebar-collapsed .sidebar-main .sidebar-header { justify-content: center !important; padding: 0.5rem !important; }
.sidebar-collapsed .sidebar-main .sidebar-title { display: none !important; }

/* Skeleton Loading */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.skeleton {
    background: rgba(255, 255, 255, 0.1);
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.25) 50%, rgba(255, 255, 255, 0.1) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 4px;
}
.skeleton-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ─── 6. WINDOW SNAPPING & DESKTOP MULTI-TASKING ──────────────────────────── */
.window-header {
    cursor: move !important;
    user-select: none !important;
    -webkit-user-select: none !important;
}
.window-header button, .window-header a, .window-header input, .window-header select, .window-header svg {
    cursor: pointer !important;
}

[data-window].window-snapped {
    border-radius: 4px !important;
    transition: left 0.22s cubic-bezier(0.16, 1, 0.3, 1), top 0.22s cubic-bezier(0.16, 1, 0.3, 1), width 0.22s cubic-bezier(0.16, 1, 0.3, 1), height 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-radius 0.2s ease !important;
}
[data-window].window-maximized {
    border-radius: 0 !important;
    border-top: none !important;
    transition: left 0.22s cubic-bezier(0.16, 1, 0.3, 1), top 0.22s cubic-bezier(0.16, 1, 0.3, 1), width 0.22s cubic-bezier(0.16, 1, 0.3, 1), height 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-radius 0.2s ease !important;
}

.win-edge-handle { position: absolute; z-index: 60; user-select: none; touch-action: none; }
.win-edge-t { top: -4px; left: 8px; right: 8px; height: 8px; cursor: ns-resize; }
.win-edge-b { bottom: -4px; left: 8px; right: 8px; height: 8px; cursor: ns-resize; }
.win-edge-l { left: -4px; top: 8px; bottom: 8px; width: 8px; cursor: ew-resize; }
.win-edge-r { right: -4px; top: 8px; bottom: 8px; width: 8px; cursor: ew-resize; }
.win-edge-tl { top: -6px; left: -6px; width: 16px; height: 16px; cursor: nwse-resize; z-index: 62; }
.win-edge-tr { top: -6px; right: -6px; width: 16px; height: 16px; cursor: nesw-resize; z-index: 62; }
.win-edge-bl { bottom: -6px; left: -6px; width: 16px; height: 16px; cursor: nesw-resize; z-index: 62; }
.win-edge-br { bottom: -6px; right: -6px; width: 16px; height: 16px; cursor: nwse-resize; z-index: 62; }
[data-window].window-snapped .win-edge-handle,
[data-window].window-maximized .win-edge-handle { display: none !important; }

/* ─── 7. LOGIN PAGE & BULLETPROOF AUTOFILL ─────────────────────────────────── */
.login-bg {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 153, 204, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(0, 184, 230, 0.05) 0%, transparent 50%),
        linear-gradient(180deg, #060a10 0%, #0d1520 50%, #060a10 100%);
    animation: bgPulse 8s ease-in-out infinite alternate;
}
@keyframes bgPulse {
    0% { opacity: 1; }
    100% { opacity: 0.85; }
}

.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(0, 212, 255, 0.6);
    border-radius: 50%;
    animation: floatUp linear infinite;
    box-shadow: 0 0 6px rgba(0, 212, 255, 0.3);
}
.particle:nth-child(odd) {
    width: 3px;
    height: 3px;
    background: rgba(0, 184, 230, 0.4);
}
@keyframes floatUp {
    0% { transform: translateY(100vh) translateX(0) scale(0); opacity: 0; }
    10% { opacity: 1; scale: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-10vh) translateX(var(--drift)) scale(0.5); opacity: 0; }
}

.login-card {
    background: rgba(13, 21, 32, 0.85);
    border: 1px solid var(--color-primary-border);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 0 60px rgba(0, 212, 255, 0.05), 0 25px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: cardEntry 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
}
@keyframes cardEntry {
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.logo-glow {
    animation: logoGlow 3s ease-in-out infinite alternate;
}
@keyframes logoGlow {
    0% { text-shadow: 0 0 20px rgba(0, 212, 255, 0.4), 0 0 40px rgba(0, 212, 255, 0.2); }
    100% { text-shadow: 0 0 30px rgba(0, 212, 255, 0.6), 0 0 60px rgba(0, 212, 255, 0.3); }
}

/* Bulletproof Login Inputs & Autofill */
.login-input,
input.login-input,
input[type="text"].login-input,
input[type="password"].login-input {
    background: var(--input-bg) !important;
    border: 1px solid var(--input-border) !important;
    color: var(--text-main) !important;
    -webkit-text-fill-color: var(--text-main) !important;
    caret-color: var(--color-primary) !important;
    box-sizing: border-box !important;
    height: 48px !important;
    padding-left: 48px !important;
    padding-right: 16px !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 22px !important;
    letter-spacing: normal !important;
    vertical-align: middle !important;
    cursor: text !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    transition: border-color var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast) !important;
}

.login-input:hover,
input.login-input:hover,
input[type="text"].login-input:hover,
input[type="password"].login-input:hover {
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 22px !important;
    letter-spacing: normal !important;
    -webkit-text-fill-color: var(--text-main) !important;
}

.login-input.has-right-icon,
input.login-input.has-right-icon,
input[type="password"].login-input.has-right-icon {
    padding-right: 48px !important;
}

.login-input::-ms-reveal, .login-input::-ms-clear { display: none !important; }

.login-input:focus,
input.login-input:focus,
input[type="text"].login-input:focus,
input[type="password"].login-input:focus {
    background: var(--input-bg-focus) !important;
    border-color: var(--input-border-focus) !important;
    box-shadow: var(--input-shadow-focus) !important;
    outline: none !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 22px !important;
    letter-spacing: normal !important;
    -webkit-text-fill-color: var(--text-main) !important;
}

.login-input::placeholder {
    color: var(--text-muted) !important;
    -webkit-text-fill-color: var(--text-muted) !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    letter-spacing: normal !important;
    opacity: 1 !important;
}

.login-input:-webkit-autofill,
.login-input:-webkit-autofill:hover,
.login-input:-webkit-autofill:focus,
.login-input:-webkit-autofill:active,
.login-input:-webkit-autofill-previewed,
.login-input:-webkit-autofill-previewed:hover,
.login-input:-webkit-autofill-previewed:focus,
.login-input:-webkit-autofill-selected,
.login-input:autofill,
.login-input:autofill:hover,
.login-input:autofill:focus,
input.login-input:-webkit-autofill,
input.login-input:-webkit-autofill:hover,
input.login-input:-webkit-autofill:focus,
input.login-input:-webkit-autofill:active,
input.login-input:-webkit-autofill-previewed,
input.login-input:-webkit-autofill-selected,
input.login-input:autofill {
    -webkit-box-shadow: 0 0 0 1000px var(--autofill-bg) inset !important;
    box-shadow: 0 0 0 1000px var(--autofill-bg) inset !important;
    -webkit-text-fill-color: var(--text-main) !important;
    color: var(--text-main) !important;
    caret-color: var(--color-primary) !important;
    padding-left: 48px !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 22px !important;
    letter-spacing: normal !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    transition: background-color 5000000s ease-in-out 0s !important;
}

.login-input:-moz-autofill,
.login-input:-moz-autofill:hover,
.login-input:-moz-autofill:focus,
.login-input:-moz-autofill-previewed,
input.login-input:-moz-autofill {
    box-shadow: 0 0 0 1000px var(--autofill-bg) inset !important;
    -moz-text-fill-color: var(--text-main) !important;
    filter: none !important;
    padding-left: 48px !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 22px !important;
    letter-spacing: normal !important;
}

.login-input-icon {
    width: 48px !important;
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: none !important;
    z-index: 10 !important;
}
.login-input-icon svg {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    flex-shrink: 0 !important;
}

.login-btn {
    background: linear-gradient(135deg, #0099cc 0%, #00b8e6 50%, #00d4ff 100%);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
}
.login-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.35);
}
.login-btn:active:not(:disabled) { transform: translateY(0); }
.login-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.login-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(45deg);
    animation: shimmer 3s ease-in-out infinite;
}

.shake { animation: shake 0.5s ease-in-out; }
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.error-msg { animation: errorIn 0.3s ease-out; }
@keyframes errorIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Title-bar refresh: kept for a few seconds after click, not only while the request is in flight. */
.is-refreshing svg {
    transform-origin: center;
    transform-box: fill-box;
    animation: spin 0.8s linear infinite;
}

.deco-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent);
}
.grid-overlay {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* ─── 8. RESPONSIVE MOBILE OPTIMIZATIONS (< 768px, < 480px) ───────────────── */
@media (max-width: 767px) {
    /* Form elements minimum touch target */
    input:not([type="checkbox"]):not([type="radio"]):not(.stat-input):not(.login-input),
    select,
    textarea {
        min-height: 44px !important;
        font-size: 16px !important;
        padding: 10px 12px !important;
    }

    /* Protected Login Inputs on Mobile */
    .login-input,
    input.login-input,
    input[type="text"].login-input,
    input[type="password"].login-input {
        padding-left: 48px !important;
        padding-right: 16px !important;
        padding-top: 12px !important;
        padding-bottom: 12px !important;
        height: 48px !important;
        font-size: 15px !important;
        font-weight: 500 !important;
        line-height: 22px !important;
        letter-spacing: normal !important;
    }
    .login-input.has-right-icon,
    input.login-input.has-right-icon,
    input[type="password"].login-input.has-right-icon {
        padding-right: 48px !important;
    }

    button, .btn, [type="submit"], [type="button"] {
        min-height: 44px;
        min-width: 44px;
    }

    .modal-mobile-full {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        margin: 0 !important;
    }

    .p-5 { padding: 16px !important; }
    .gap-6 { gap: 16px !important; }
    .gap-5 { gap: 12px !important; }
}

@media (max-width: 480px) {
    .text-2xl { font-size: 1.25rem !important; }
    .text-xl { font-size: 1.125rem !important; }
}

/* ─── 10. LITEPICKER CUSTOM MODERN THEME (MMORPG DARK & LIGHT) ─────────────── */
.litepicker {
    background: #0d1520 !important;
    border: 1px solid #1e293b !important;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8), 0 10px 20px -5px rgba(0, 0, 0, 0.6) !important;
    border-radius: 12px !important;
    font-family: inherit !important;
    z-index: 99999 !important;
    color: #e2e8f0 !important;
    overflow: hidden !important;
}
.litepicker.admin-logs-date-picker {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%);
    max-width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    overflow: auto !important;
}
.litepicker .container__main {
    background: #0d1520 !important;
}
.litepicker .container__months {
    background: #0d1520 !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}
.litepicker .container__months .month-item-header {
    padding: 12px 10px !important;
    color: #f8fafc !important;
    font-weight: 700 !important;
    font-size: 14px !important;
}
.litepicker .container__months .month-item-header .button-previous-month,
.litepicker .container__months .month-item-header .button-next-month {
    color: #94a3b8 !important;
    fill: #94a3b8 !important;
    border-radius: 6px !important;
    padding: 4px !important;
}
.litepicker .container__months .month-item-header .button-previous-month:hover,
.litepicker .container__months .month-item-header .button-next-month:hover {
    color: #06b6d4 !important;
    fill: #06b6d4 !important;
    background: rgba(6, 182, 212, 0.15) !important;
}
.litepicker .container__months .month-item-weekdays-row > div {
    color: #06b6d4 !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    padding: 6px 0 !important;
}
.litepicker .container__days .day-item {
    color: #cbd5e1 !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    transition: all 0.15s ease !important;
}
.litepicker .container__days .day-item:hover {
    background: #1e293b !important;
    color: #38bdf8 !important;
    box-shadow: none !important;
}
.litepicker .container__days .day-item.is-today {
    border: 1px solid #06b6d4 !important;
    color: #38bdf8 !important;
    font-weight: 700 !important;
}
.litepicker .container__days .day-item.is-start-date,
.litepicker .container__days .day-item.is-end-date {
    background: #0891b2 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.5) !important;
    border-radius: 6px !important;
}
.litepicker .container__days .day-item.is-in-range {
    background: rgba(6, 182, 212, 0.2) !important;
    color: #38bdf8 !important;
    border-radius: 0 !important;
}
.litepicker .container__days .day-item.is-locked {
    color: #475569 !important;
}

/* Preset Ranges Sidebar */
.litepicker .container__predefined-ranges {
    background: #090e17 !important;
    border-right: 1px solid #1e293b !important;
    padding: 12px 10px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    min-width: 130px !important;
}
.litepicker .container__predefined-ranges button {
    background: #111c2a !important;
    color: #94a3b8 !important;
    border: 1px solid #1e293b !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-align: left !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    width: 100% !important;
}
.litepicker .container__predefined-ranges button:hover {
    background: #1e293b !important;
    color: #06b6d4 !important;
    border-color: #06b6d4 !important;
}
.litepicker .container__predefined-ranges button.is-active {
    background: #0891b2 !important;
    color: #ffffff !important;
    border-color: #06b6d4 !important;
    font-weight: 700 !important;
}
.litepicker .container__footer {
    background: #090e17 !important;
    border-top: 1px solid #1e293b !important;
    padding: 10px 14px !important;
}
.litepicker .container__footer .button-apply {
    background: #0891b2 !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    padding: 6px 14px !important;
    font-weight: 600 !important;
}
.litepicker .container__footer .button-cancel {
    background: #1e293b !important;
    color: #94a3b8 !important;
    border-radius: 6px !important;
    padding: 6px 14px !important;
}

/* Light mode overrides */
html.light .litepicker {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.1) !important;
    color: #1e293b !important;
}
html.light .litepicker .container__main,
html.light .litepicker .container__months {
    background: #ffffff !important;
}
html.light .litepicker .container__months .month-item-header {
    color: #0f172a !important;
}
html.light .litepicker .container__days .day-item {
    color: #334155 !important;
}
html.light .litepicker .container__days .day-item:hover {
    background: #f1f5f9 !important;
    color: #0284c7 !important;
}
html.light .litepicker .container__predefined-ranges {
    background: #f8fafc !important;
    border-right: 1px solid #e2e8f0 !important;
}
html.light .litepicker .container__predefined-ranges button {
    background: #ffffff !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
}
html.light .litepicker .container__predefined-ranges button:hover {
    background: #f1f5f9 !important;
    color: #0284c7 !important;
}
html.light .litepicker .container__footer {
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
}

.site-kaynak-scroll { max-height: 49rem; overflow-y: auto; }
.epin-provider-chip { background: rgba(236, 72, 153, 0.15) !important; color: #ec4899 !important; }
.epin-provider-text { color: #ec4899 !important; }
.password-visible { -webkit-text-security: none; }

.site-editor { background: #fff; border: 1px solid #cbd5e1; }
html.dark .site-editor { background: #121c2b; border-color: #334155; box-shadow: 0 8px 24px rgba(0,0,0,.28); }
.site-editor-title { margin: 0 0 .25rem; padding-bottom: .75rem; border-bottom: 1px solid #e2e8f0; font-size: .95rem; font-weight: 700; }
html.dark .site-editor-title { border-bottom-color: #334155; color: #f8fafc; }
html.dark .site-editor label { color: #cbd5e1; }
html.dark .site-editor input,
html.dark .site-editor textarea { background: #0b1220; border: 1px solid #3b4c63; color: #f8fafc; }
button.site-save,
button.site-delete { display: inline-flex; align-items: center; justify-content: center; min-width: 6.5rem; border-radius: .5rem; padding: .55rem 1.15rem; font-size: .875rem; font-weight: 700; color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
button.site-save { background: #0891b2; border: 1px solid #0e7490; }
button.site-save:hover { background: #0e7490; }
button.site-delete { background: #dc2626; border: 1px solid #b91c1c; }
button.site-delete:hover { background: #b91c1c; }
.site-rte { border: 1px solid #cbd5e1; border-radius: .75rem; overflow: hidden; background: #fff; }
html.dark .site-rte { border-color: #334155; background: #0b1220; }
.site-rte-bar { display: flex; flex-wrap: wrap; gap: .35rem; padding: .5rem; border-bottom: 1px solid #e2e8f0; background: #f8fafc; }
html.dark .site-rte-bar { border-bottom-color: #334155; background: #121c2b; }
button.site-rte-btn { background: #fff; color: #0f172a; border: 1px solid #cbd5e1; border-radius: .45rem; padding: .35rem .6rem; font-size: .75rem; font-weight: 700; }
html.dark button.site-rte-btn { background: #1e293b; color: #e2e8f0; border-color: #475569; }
button.site-rte-btn:hover { background: #e0f2fe; border-color: #0891b2; color: #0e7490; }
html.dark button.site-rte-btn:hover { background: #164e63; color: #fff; border-color: #0891b2; }
.site-rte-body { min-height: 12rem; max-height: 36rem; overflow-y: auto; padding: 1rem 1.1rem; outline: none; line-height: 1.55; }
.site-rte-body:focus { box-shadow: inset 0 0 0 1px #0891b2; }
html.dark .site-rte-body { color: #f8fafc; }
.site-rte-body h2 { font-size: 1.35rem; font-weight: 700; margin: .8rem 0 .4rem; }
.site-rte-body h3 { font-size: 1.1rem; font-weight: 700; margin: .7rem 0 .35rem; }
.site-rte-body p { margin: 0 0 .65rem; }
.site-rte-body ul, .site-rte-body ol { margin: 0 0 .65rem 1.2rem; }
.site-rte-body blockquote { margin: 0 0 .8rem; padding-left: .8rem; border-left: 3px solid #0891b2; color: #cbd5e1; }
html.dark .site-rte-title { background: #0b1220; border-color: #3b4c63; color: #f8fafc; font-size: 1.15rem; }
