﻿/* ==========================================================================
   Sales Administration System
   Enterprise Theme
   File        : theme.css
   Description : Global Design Token
   ========================================================================== */

:root {
    /* ==========================================================
       PRIMARY BRAND
       ========================================================== */

    --color-primary: #0B3D91;
    --color-primary-hover: #0A357E;
    --color-primary-active: #082D6C;
    --color-primary-soft: #EAF2FF;
    --color-primary-border: #C8DAFF;
    /* ==========================================================
       SUCCESS
       ========================================================== */

    --color-success: #198754;
    --color-success-hover: #157347;
    --color-success-active: #146C43;
    --color-success-soft: #EAF8F0;
    --color-success-border: #BEE5CF;
    /* ==========================================================
       WARNING
       ========================================================== */

    --color-warning: #FD7E14;
    --color-warning-hover: #E96B00;
    --color-warning-active: #C85D00;
    --color-warning-soft: #FFF4E8;
    --color-warning-border: #FFD9B0;
    /* ==========================================================
       DANGER
       ========================================================== */

    --color-danger: #DC3545;
    --color-danger-hover: #C82333;
    --color-danger-active: #B21F2D;
    --color-danger-soft: #FDECEC;
    --color-danger-border: #F5C2C7;
    /* ==========================================================
       INFO
       ========================================================== */

    --color-info: #0DCAF0;
    --color-info-hover: #31D2F2;
    --color-info-soft: #E8FAFD;
    --color-info-border: #B8F0FA;
    /* ==========================================================
       SECONDARY
       ========================================================== */

    --color-secondary: #6C757D;
    --color-secondary-hover: #5C636A;
    --color-secondary-active: #4F565D;
    --color-secondary-soft: #F1F3F5;
    --color-secondary-border: #DEE2E6;
    /* ==========================================================
       DARK
       ========================================================== */

    --color-dark: #1E293B;
    --color-dark-soft: #334155;
    /* ==========================================================
       LIGHT
       ========================================================== */

    --color-white: #FFFFFF;
    --color-light: #F8F9FA;
    --color-body: #F4F6F9;
    /* ==========================================================
       TEXT
       ========================================================== */

    --text-primary: #212529;
    --text-secondary: #6C757D;
    --text-muted: #9CA3AF;
    --text-white: #FFFFFF;
    --text-link: var(--color-primary);
    /* ==========================================================
       BORDER
       ========================================================== */

    --border-color: #E5E7EB;
    --border-light: #EEF2F6;
    --border-dark: #CED4DA;
    /* ==========================================================
       STATUS
       ========================================================== */

    --status-draft-bg: #F3F4F6;
    --status-draft-text: #6B7280;
    --status-submitted-bg: #EAF2FF;
    --status-submitted-text: #0B3D91;
    --status-waiting-bg: #FFF4E5;
    --status-waiting-text: #E67E22;
    --status-waiting-revision-bg: #E67E22;
    --status-waiting-revision-text: #FDECEC;
    --status-approved-bg: #EAF8F0;
    --status-approved-text: #198754;
    --status-rejected-bg: #FDECEc;
    --status-rejected-text: #DC3545;
    --status-completed-bg: #E6F7EE;
    --status-completed-text: #146C43;
    --status-cancelled-bg: #F3F4F6;
    --status-cancelled-text: #6B7280;
    /* ==========================================================
       SIDEBAR
       ========================================================== */

    --sidebar-width: 260px;
    --sidebar-bg: #0B2C6B;
    --sidebar-bg-hover: #103A8C;
    --sidebar-bg-active: #1749AE;
    --sidebar-text: rgba(255,255,255,.85);
    --sidebar-text-active: #FFFFFF;
    /* ==========================================================
       HEADER
       ========================================================== */

    --header-height: 64px;
    --header-bg: #FFFFFF;
    /* ==========================================================
       CARD
       ========================================================== */

    --card-bg: #FFFFFF;
    --card-border: var(--border-color);
    /* Enterprise Style:
       Very subtle shadow */

    --card-shadow: 0 1px 2px rgba(16,24,40,.05);
    --card-shadow-hover: 0 4px 10px rgba(16,24,40,.08);
    /* ==========================================================
       TABLE
       ========================================================== */

    --table-header-bg: #F8F9FA;
    --table-header-color: #495057;
    --table-hover: #F9FBFF;
    --table-border: #ECEFF3;
    --table-striped: #FCFCFD;
    /* ==========================================================
       INPUT
       ========================================================== */

    --input-height: 38px;
    --input-bg: #FFFFFF;
    --input-border: #CED4DA;
    --input-placeholder: #ADB5BD;
    --input-focus-border: #86B7FE;
    --input-focus-shadow: 0 0 0 .15rem rgba(13,110,253,.15);
    /* ==========================================================
       BUTTON
       ========================================================== */

    --btn-height: 38px;
    --btn-radius: 8px;
    /* ==========================================================
       BORDER RADIUS
       ========================================================== */

    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-pill: 999px;
    /* ==========================================================
       SPACING
       ========================================================== */

    --space-0: 0;
    --space-1: .25rem;
    --space-2: .5rem;
    --space-3: .75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-7: 2rem;
    --space-8: 2.5rem;
    --space-9: 3rem;
    /* ==========================================================
       FONT
       ========================================================== */

    --font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-size-xs: .75rem;
    --font-size-sm: .875rem;
    --font-size-md: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --line-height: 1.5;
    /* ==========================================================
       Z-INDEX
       ========================================================== */

    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-offcanvas: 1045;
    --z-modal: 1055;
    --z-popover: 1070;
    --z-tooltip: 1080;
    --z-loading: 2000;
    /* ==========================================================
       TRANSITION
       ========================================================== */

    --transition-fast: .15s ease-in-out;
    --transition-normal: .25s ease-in-out;
    --transition-slow: .35s ease-in-out;
}

/* ==========================================================================
   Global Theme
   ========================================================================== */

html {
    font-size: 14px;
}

@media (min-width: 768px) {

    html {
        font-size: 15px;
    }
}

body {
    background: var(--color-body);
    color: var(--text-primary);
    font-family: var(--font-family);
    line-height: var(--line-height);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Selection
   ========================================================================== */

::selection {
    background: var(--color-primary);
    color: var(--color-white);
}

/* ==========================================================================
   Scrollbar
   ========================================================================== */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #F1F3F5;
}

::-webkit-scrollbar-thumb {
    background: #C5CBD3;
    border-radius: 999px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #AEB5BE;
    }

/* ==========================================================================
   Link
   ========================================================================== */

a {
    color: var(--text-link);
    text-decoration: none;
    transition: var(--transition-fast);
}

    a:hover {
        color: var(--color-primary-hover);
    }

/* ==========================================================================
   Focus Accessibility
   ========================================================================== */

:focus-visible {
    outline: none;
    box-shadow: var(--input-focus-shadow);
}
