
/* =====================================================
   SERVICEX - GLOBAL MAIN CSS
   Common Typography for Admin, Partner & Customer
   Standard UI: Leads Page Design
   Font Family: Lato
===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;500;600;700;800;900&display=swap');

/* =====================================================
   1. GLOBAL VARIABLES
===================================================== */

:root {
    --sx-font-family: 'Lato', sans-serif;

    /* Font Sizes */
    --sx-font-xs: 10px;
    --sx-font-sm: 11px;
    --sx-font-base: 12px;
    --sx-font-md: 13px;
    --sx-font-lg: 14px;
    --sx-font-xl: 16px;
    --sx-font-2xl: 19px;
    --sx-font-3xl: 22px;
    --sx-font-4xl: 26px;

    /* Font Weights */
    --sx-weight-normal: 400;
    --sx-weight-medium: 500;
    --sx-weight-semibold: 600;
    --sx-weight-bold: 700;
    --sx-weight-extrabold: 800;

    /* Text Colors */
    --sx-text-primary: #253247;
    --sx-text-secondary: #526074;
    --sx-text-muted: #8993a3;
    --sx-text-white: #ffffff;

    /* Brand Colors */
    --sx-primary: #f26622;
    --sx-primary-dark: #df5012;

    /* Common Borders */
    --sx-border: #e5eaf0;
}

/* =====================================================
   2. GLOBAL RESET
===================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-family: var(--sx-font-family);
    font-size: 14px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--sx-font-family);
    font-size: var(--sx-font-lg);
    font-weight: var(--sx-weight-normal);
    color: var(--sx-text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
    font-family: var(--sx-font-family);
}

/* =====================================================
   3. HEADINGS
===================================================== */

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    font-family: var(--sx-font-family);
    color: var(--sx-text-primary);
    line-height: 1.35;
}

h1 {
    font-size: var(--sx-font-3xl);
    font-weight: var(--sx-weight-bold);
}

h2 {
    font-size: var(--sx-font-2xl);
    font-weight: var(--sx-weight-bold);
}

h3 {
    font-size: var(--sx-font-xl);
    font-weight: var(--sx-weight-bold);
}

h4 {
    font-size: var(--sx-font-lg);
    font-weight: var(--sx-weight-semibold);
}

h5 {
    font-size: var(--sx-font-md);
    font-weight: var(--sx-weight-semibold);
}

h6 {
    font-size: var(--sx-font-base);
    font-weight: var(--sx-weight-semibold);
}

/* =====================================================
   4. PARAGRAPH & TEXT
===================================================== */

p {
    font-family: var(--sx-font-family);
    font-size: var(--sx-font-md);
    font-weight: var(--sx-weight-normal);
    color: var(--sx-text-secondary);
    line-height: 1.6;
}

small {
    font-size: var(--sx-font-sm);
    color: var(--sx-text-muted);
}

strong,
b {
    font-weight: var(--sx-weight-bold);
}

label {
    font-family: var(--sx-font-family);
    font-size: var(--sx-font-base);
    font-weight: var(--sx-weight-semibold);
    color: var(--sx-text-primary);
}

span,
div,
a,
li {
    font-family: var(--sx-font-family);
}

/* =====================================================
   5. LINKS
===================================================== */

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--sx-primary);
}

/* =====================================================
   6. BUTTONS
===================================================== */

button,
.btn,
input[type="button"],
input[type="submit"],
input[type="reset"] {
    font-family: var(--sx-font-family);
    font-size: var(--sx-font-base);
    font-weight: var(--sx-weight-semibold);
    line-height: 1.4;
}

button {
    cursor: pointer;
}

/* =====================================================
   7. FORM ELEMENTS
===================================================== */

input,
select,
textarea {
    font-family: var(--sx-font-family);
    font-size: var(--sx-font-md);
    font-weight: var(--sx-weight-normal);
    color: var(--sx-text-primary);
}

input::placeholder,
textarea::placeholder {
    font-family: var(--sx-font-family);
    font-size: var(--sx-font-base);
    font-weight: var(--sx-weight-normal);
    color: var(--sx-text-muted);
    opacity: 1;
}

/* =====================================================
   8. TABLES
===================================================== */

table {
    width: 100%;
    font-family: var(--sx-font-family);
    font-size: var(--sx-font-base);
    border-collapse: collapse;
}

table th {
    font-size: var(--sx-font-base);
    font-weight: var(--sx-weight-bold);
    color: var(--sx-text-secondary);
}

table td {
    font-size: var(--sx-font-base);
    font-weight: var(--sx-weight-normal);
    color: var(--sx-text-secondary);
}

/* =====================================================
   9. NAVIGATION & SIDEBAR
===================================================== */

nav,
nav a,
aside,
aside a,
.sidebar,
.sidebar a,
.topbar,
.topbar a {
    font-family: var(--sx-font-family);
}

.sidebar a {
    font-size: var(--sx-font-md);
    font-weight: var(--sx-weight-medium);
    color: var(--sx-text-secondary);
}

/* =====================================================
   10. BADGES & STATUS
===================================================== */

.badge,
.status,
.status-badge {
    font-family: var(--sx-font-family);
    font-size: var(--sx-font-sm);
    font-weight: var(--sx-weight-semibold);
}

/* =====================================================
   11. COMMON TEXT UTILITIES
===================================================== */

.sx-text-xs { font-size: var(--sx-font-xs); }
.sx-text-sm { font-size: var(--sx-font-sm); }
.sx-text-base { font-size: var(--sx-font-base); }
.sx-text-md { font-size: var(--sx-font-md); }
.sx-text-lg { font-size: var(--sx-font-lg); }
.sx-text-xl { font-size: var(--sx-font-xl); }
.sx-text-2xl { font-size: var(--sx-font-2xl); }
.sx-text-3xl { font-size: var(--sx-font-3xl); }

.sx-font-normal { font-weight: var(--sx-weight-normal); }
.sx-font-medium { font-weight: var(--sx-weight-medium); }
.sx-font-semibold { font-weight: var(--sx-weight-semibold); }
.sx-font-bold { font-weight: var(--sx-weight-bold); }

.sx-text-primary { color: var(--sx-text-primary); }
.sx-text-secondary { color: var(--sx-text-secondary); }
.sx-text-muted { color: var(--sx-text-muted); }

/* =====================================================
   12. RESPONSIVE TYPOGRAPHY
===================================================== */

@media (max-width: 768px) {

    h1 { font-size: 19px; }
    h2 { font-size: 18px; }
    h3 { font-size: 16px; }
    h4 { font-size: 14px; }

    body {
        font-size: 13px;
    }

    p {
        font-size: 13px;
    }

    label {
        font-size: 12px;
    }

    button,
    .btn,
    input,
    select,
    textarea {
        font-size: 13px;
    }

    table,
    table th,
    table td {
        font-size: 12px;
    }
}

/* =====================================================
   13. ACCESSIBILITY
===================================================== */

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--sx-primary);
    outline-offset: 2px;
}
