/* ========================================
   ARMOZE MAP OVERLAY ZONE EDITOR
   Design System & Styles
   ======================================== */

/* CSS Variables - Design Tokens */
:root {
    /* Colors - Deep Tactical Glass */
    --color-bg-primary: #0a0b0e;
    --color-bg-secondary: #0f1118;
    --color-bg-tertiary: #161922;
    --color-bg-elevated: rgba(30, 34, 45, 0.4);

    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-hover: rgba(255, 255, 255, 0.15);
    --color-border-active: rgba(var(--color-accent-rgb), 0.3);

    --color-text-primary: #ffffff;
    --color-text-secondary: #a0a8b5;
    --color-text-muted: #626a7a;

    --color-accent: #00ff88;
    --color-accent-rgb: 0, 255, 136;
    --color-accent-hover: #00e077;
    --color-accent-glow: rgba(0, 255, 136, 0.2);

    --color-danger: #ff4757;
    --color-danger-rgb: 255, 71, 87;

    /* Typography - system fonts that work offline in Electron */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI Variable', 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'Cascadia Code', 'Consolas', 'Fira Code', monospace;

    /* Easing & Motion (The Secret to Polish) */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out-cubic: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    
    --transition-fast: 0.15s var(--ease-out-expo);
    --transition-smooth: 0.4s var(--ease-out-expo);
    --transition-slow: 0.6s var(--ease-out-expo);

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;

    /* Shadows - Layered for Depth */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.6);
    --shadow-glass: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-accent: 0 0 25px var(--color-accent-glow);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: var(--font-primary);
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text-primary);
    background-color: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.is-zone-dragging,
body.is-zone-dragging * {
    user-select: none !important;
    -webkit-user-select: none !important;
}

/* UTILITY CLASSES */
.hidden {
    display: none !important;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-border-hover);
}

/* Selection */
::selection {
    background: rgba(var(--color-accent-rgb), 0.3);
    color: white;
}

/* Animations */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-fade-in {
    animation: fadeIn var(--transition-normal) ease forwards;
}

/* Interactive Elements Polish */
button, .btn, .tool-btn, .tab, .zone-item {
    transition: all 0.2s var(--ease-out-expo) !important;
}

.btn:hover, .tool-btn:hover, .zone-item:hover {
    transform: translateY(-1px) scale(1.02);
}

.btn:active, .tool-btn:active, .zone-item:active {
    transform: translateY(0) scale(0.98);
}
