/* ============================================================
   GLOBAL CSS TOKENS & UTILITIES
   Layout-specific styles are now scoped inside:
     - resources/js/layout/SideNavLayout.vue (scoped)
     - resources/js/Components/Dashboard/*.vue (scoped)
   ============================================================ */

:root {
    /* Brand Colors */
    --themeColor:       #21bf73;
    --themeColorDark:   #39B27B;
    --themeLightColor:  #56d598;
    --secondaryColor:   #B0EACD;
    --themeDarkColor:   #2E374F;
    --themeWhiteColor:  #ffffff;

    /* Greyscale */
    --lightColor:          #9EA3AE;
    --lightDeepColor-1:    #9EA3AE;
    --lightDeepColor-2:    #f8f9fb;
    --lightDeepColor-3:    #D3D5DA;
    --lightDeepColor-4:    #9EA3AE;
    --darkColor:           #6C727F;
    --darkDeepColor-1:     #4D5461;
    --darkDeepColor-2:     #394150;
    --darkDeepColor-3:     #212936;
    --darkDeepColor-4:     #0B0A0F;

    /* Typography scale */
    --headline-1: 52px;
    --headline-2: 40px;
    --headline-3: 32px;
    --headline-4: 24px;
    --bodyXLarge: 20px;
    --bodyLarge:  18px;
    --bodyMedium: 16px;
    --bodySmal:   14px;
    --bodyXSmal:  10px;
}

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

body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    background-color: var(--lightDeepColor-2);
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px;
    color: #374151;
}

a {
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}
a:hover {
    color: inherit;
    text-decoration: none;
}

/* ── Utility Classes ───────────────────────────────────────── */
.text-green  { color: var(--themeColor) !important; }
.text-sm     { font-size: 12px; }

.card {
    border: none !important;
    border-radius: 14px !important;
}

.btn-success {
    background: var(--themeColor) !important;
    border-color: var(--themeColor) !important;
}
.btn-success:hover {
    background: var(--themeColorDark) !important;
    border-color: var(--themeColorDark) !important;
}

.center-screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 85vh;
}

/* Icon nav (used in other pages) */
.icon-nav {
    padding: 6px;
    transition: 0.2s;
    color: #606060;
    cursor: pointer;
}
.icon-nav:hover  { color: #252526; }
.icon-nav:active {
    border-radius: 50%;
    padding: 8px;
    color: #252526;
    background: rgba(0, 0, 0, 0.10);
}

.icon-nav-img {
    cursor: pointer;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    object-fit: cover;
}
.icon-nav-img-lg {
    border-radius: 50%;
    width: 65px;
    height: 65px;
    object-fit: cover;
}

/* ── NProgress bar color override ──────────────────────────── */
#nprogress .bar {
    background: var(--themeColor) !important;
    height: 3px;
}
#nprogress .peg {
    box-shadow: 0 0 10px var(--themeColor), 0 0 5px var(--themeColor);
}
