/* ============================================
   LXTRONIC - Global Styles
   Variables, Resets, Utilities & Animations
   ============================================ */

/* --- Import Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;900&display=swap');

/* --- CSS Variables --- */
:root {
    --font-main: 'Outfit', sans-serif;

    --color-primary: #2563eb;
    --color-primary-light: #eff6ff;
    --color-primary-dark: #1d4ed8;
    --color-primary-shadow: rgba(37, 99, 235, 0.25);

    --color-success: #16a34a;
    --color-success-light: #f0fdf4;
    --color-danger: #dc2626;
    --color-danger-light: #fef2f2;
    --color-warning: #d97706;
    --color-warning-light: #fffbeb;

    --color-bg: #F8FAFC;
    --color-white: #ffffff;
    --color-slate-50: #f8fafc;
    --color-slate-100: #f1f5f9;
    --color-slate-200: #e2e8f0;
    --color-slate-400: #94a3b8;
    --color-slate-500: #64748b;
    --color-slate-600: #475569;
    --color-slate-700: #334155;
    --color-slate-800: #1e293b;
    --color-slate-900: #0f172a;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-3xl: 32px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.07), 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.12);
    --shadow-primary: 0 8px 24px var(--color-primary-shadow);

    --sidebar-width: 260px;
    --transition: all 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* Ensure 1rem = 16px */
}

body {
    font-family: var(--font-main);
    background: var(--color-bg);
    color: var(--color-slate-800);
    font-size: 0.9375rem;
    /* ~15px */
    line-height: 1.6;
    animation: fadeIn 0.35s ease;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    font-family: var(--font-main);
}

input,
select,
textarea {
    font-family: var(--font-main);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Keyframe Animations (Global) --- */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================
   UTILITIES
   ============================================ */
.divider {
    border: none;
    border-top: 1px solid var(--color-slate-100);
    margin: 1.5rem 0;
}

.text-muted {
    color: var(--color-slate-400);
}

.text-primary {
    color: var(--color-primary);
}

.text-danger {
    color: var(--color-danger);
}

.text-success {
    color: var(--color-success);
}

.font-bold {
    font-weight: 700;
}

.font-black {
    font-weight: 900;
}

.w-full {
    width: 100%;
}

.mt-1 {
    margin-top: 0.375rem;
}

.mt-2 {
    margin-top: 0.75rem;
}

.mt-4 {
    margin-top: 1.25rem;
}

.mb-2 {
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-slate-400);
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-slate-50);
    margin-bottom: 1.5rem;
}

.row-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
}


/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

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

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

/* Base Responsive Typography */
@media (max-width: 580px) {
    html {
        font-size: 15px;
    }
}