/*
 * FlexCore HR — theme.css
 * Design tokens, reset, typography
 * © FlexCore HR Template
 */

@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=Space+Mono:wght@400;700&display=swap");

/* ─────────────────────────────────────────────────
   DESIGN TOKENS
───────────────────────────────────────────────── */
:root {
    /* Brand */
    --fx-brand: #1d2126;
    --fx-brand-light: #ff4d2e;
    --fx-brand-soft: #fff4f2;
    --fx-brand-mid: #ffd0c8;
    --fx-brand-border: #ffb1a4;

    /* Surfaces */
    --fx-bg: #f0f2f5;
    --fx-surface: #ffffff;
    --fx-surface-2: #f8f9fb;
    --fx-surface-3: #f0f2f5;

    /* Borders */
    --fx-border: #e4e6ea;
    --fx-border-strong: #cdd0d6;

    /* Semantic colors */
    --fx-success: #16a34a;
    --fx-success-soft: #dcfce7;
    --fx-success-text: #15803d;
    --fx-danger: #dc2626;
    --fx-danger-soft: #fee2e2;
    --fx-danger-text: #b91c1c;
    --fx-warning: #d97706;
    --fx-warning-soft: #fef3c7;
    --fx-warning-text: #b45309;
    --fx-info: #2563eb;
    --fx-info-soft: #dbeafe;
    --fx-info-text: #1d4ed8;
    --fx-orange: #ea580c;
    --fx-orange-soft: #ffedd5;
    --fx-pink: #db2777;
    --fx-pink-soft: #fce7f3;
    --fx-teal: #0d9488;
    --fx-teal-soft: #ccfbf1;

    /* Text */
    --fx-text-primary: #0f172a;
    --fx-text-body: #334155;
    --fx-text-muted: #64748b;
    --fx-text-faint: #94a3b8;
    --fx-text-inverse: #ffffff;

    /* Typography */
    --fx-font-display: "Bebas Neue", sans-serif;
    --fx-font-body: "DM Sans", sans-serif;
    --fx-font-mono: "Space Mono", monospace;
    --fx-font-size-base: 14px;
    --fx-line-height: 1.6;

    /* Spacing scale */
    --fx-space-1: 4px;
    --fx-space-2: 8px;
    --fx-space-3: 12px;
    --fx-space-4: 16px;
    --fx-space-5: 20px;
    --fx-space-6: 24px;
    --fx-space-8: 32px;
    --fx-space-10: 40px;
    --fx-space-12: 48px;

    /* Border radius */
    --fx-radius-xs: 4px;
    --fx-radius-sm: 6px;
    --fx-radius: 10px;
    --fx-radius-lg: 14px;
    --fx-radius-xl: 20px;
    --fx-radius-pill: 999px;

    /* Shadows */
    --fx-shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --fx-shadow-sm:
        0 1px 4px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --fx-shadow:
        0 4px 12px rgba(15, 23, 42, 0.07), 0 1px 3px rgba(15, 23, 42, 0.05);
    --fx-shadow-md:
        0 8px 24px rgba(15, 23, 42, 0.09), 0 2px 6px rgba(15, 23, 42, 0.05);
    --fx-shadow-lg:
        0 16px 40px rgba(15, 23, 42, 0.11), 0 4px 10px rgba(15, 23, 42, 0.06);
    --fx-shadow-brand: 0 4px 16px rgba(255, 77, 46, 0.25);

    /* Layout */
    --fx-sidebar-width: 256px;
    --fx-sidebar-width-mini: 68px;
    --fx-topbar-height: 60px;

    /* Transitions */
    --fx-transition: all 0.18s ease;
    --fx-transition-slow: all 0.32s ease;
}

/* ─────────────────────────────────────────────────
   RESET
───────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: var(--fx-font-size-base);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--fx-font-body);
    font-size: 1rem;
    line-height: var(--fx-line-height);
    color: var(--fx-text-body);
    background: var(--fx-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}
button {
    font-family: var(--fx-font-body);
    cursor: pointer;
}
img,
svg {
    display: block;
    max-width: 100%;
}
input,
select,
textarea {
    font-family: var(--fx-font-body);
}
ul,
ol {
    list-style: none;
}
hr {
    border: none;
    border-top: 1px solid var(--fx-border);
}

/* ─────────────────────────────────────────────────
   TYPOGRAPHY
───────────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--fx-text-primary);
    line-height: 1.3;
    font-weight: 600;
}

.fx-display {
    font-family: var(--fx-font-display);
    letter-spacing: 1.5px;
    line-height: 1;
}

.fx-mono {
    font-family: var(--fx-font-mono);
}

.fx-text-xs {
    font-size: 11px;
}
.fx-text-sm {
    font-size: 12px;
}
.fx-text-base {
    font-size: 14px;
}
.fx-text-md {
    font-size: 15px;
}
.fx-text-lg {
    font-size: 16px;
}
.fx-text-xl {
    font-size: 18px;
}
.fx-text-2xl {
    font-size: 22px;
}
.fx-text-3xl {
    font-size: 28px;
}

.fx-fw-normal {
    font-weight: 400;
}
.fx-fw-medium {
    font-weight: 500;
}
.fx-fw-semibold {
    font-weight: 600;
}
.fx-fw-bold {
    font-weight: 700;
}

.fx-text-primary {
    color: var(--fx-text-primary);
}
.fx-text-body {
    color: var(--fx-text-body);
}
.fx-text-muted {
    color: var(--fx-text-muted);
}
.fx-text-faint {
    color: var(--fx-text-faint);
}
.fx-text-brand {
    color: var(--fx-brand);
}
.fx-text-success {
    color: var(--fx-success-text);
}
.fx-text-danger {
    color: var(--fx-danger-text);
}
.fx-text-warning {
    color: var(--fx-warning-text);
}

/* ─────────────────────────────────────────────────
   SCROLLBAR
───────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--fx-border-strong);
    border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--fx-text-faint);
}

/* ─────────────────────────────────────────────────
   SELECTION
───────────────────────────────────────────────── */
::selection {
    background: var(--fx-brand-soft);
    color: var(--fx-brand);
}

/* ─────────────────────────────────────────────────
   ANIMATIONS
───────────────────────────────────────────────── */
@keyframes fxFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes fxFadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fxSlideRight {
    from {
        transform: translateX(-8px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
@keyframes fxPulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}
@keyframes fxSpin {
    to {
        transform: rotate(360deg);
    }
}
@keyframes fxBounceIn {
    0% {
        transform: scale(0.92);
        opacity: 0;
    }
    60% {
        transform: scale(1.03);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
