/* =========================================================
   HERLEAX BUSINESS MANAGEMENT SYSTEM
   Base Application Styles
   ========================================================= */

:root {
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --primary-light: #EFF6FF;

    --text: #111827;
    --text-muted: #6B7280;

    --bg: #F8FAFC;
    --surface: #FFFFFF;
    --border: #E5E7EB;

    --success: #16A34A;
    --warning: #D97706;
    --danger: #DC2626;
    --info: #0284C7;

    --sidebar-width: 260px;
    --topbar-height: 70px;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);

    --transition: 0.2s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    font-size: 14px;
    line-height: 1.5;

    color: var(--text);
    background: var(--bg);

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

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

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin-top: 0;
}

/* =========================================================
   UTILITIES
   ========================================================= */

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

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

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

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

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

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.fw-normal {
    font-weight: 400;
}

.fw-medium {
    font-weight: 500;
}

.fw-semibold {
    font-weight: 600;
}

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

.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.w-100 {
    width: 100%;
}

/* =========================================================
   SCROLLBAR
   ========================================================= */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

/* =========================================================
   FOCUS
   ========================================================= */

:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.25);
    outline-offset: 2px;
}

/* =========================================================
   SELECTION
   ========================================================= */

::selection {
    background: rgba(37, 99, 235, 0.18);
    color: var(--text);
}
