/* @import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap'); */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500;600;700;800;900&family=Montserrat+Alternates:wght@200;300;400;500;600;700;800;900&display=swap');

:root {
    /* Enhanced Color System */
    --primary: #f59e0b;
    --primary-light: #fcd34d;
    --primary-x-light: #fcd34d66;
    --primary-xx-light: #fcd34d22;
    --primary-dark: #d97706;
    --primary-darker: #b45309;

    --secondary: #e7ae64;
    --secondary-light: #f0c674;
    --secondary-dark: #d4a574;

    /* Typography Colors */
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --text-inverse: #ffffff;

    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --bg-quaternary: #e5e7eb;

    /* Border Colors */
    --border-color: #e5e7eb;
    --border-color-light: #f3f4f6;
    --border-color-dark: #d1d5db;

    /* Surface Colors */
    --surface: #ffffff;
    --surface-2: #f9fafb;
    --surface-3: #f3f4f6;
    --surface-elevated: #ffffff;

    /* Status Colors */
    --success: #10b981;
    --success-light: #d1fae5;
    --success-dark: #059669;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --warning-dark: #d97706;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --danger-dark: #dc2626;
    --info: #3b82f6;
    --info-light: #dbeafe;
    --info-dark: #2563eb;

    /* Spacing System (8px grid) */
    --spacing-xs: 0.25rem;   /* 4px */
    --spacing-sm: 0.5rem;    /* 8px */
    --spacing-md: 1rem;      /* 16px */
    --spacing-lg: 1.5rem;    /* 24px */
    --spacing-xl: 2rem;      /* 32px */
    --spacing-2xl: 3rem;     /* 48px */
    --spacing-3xl: 4rem;     /* 64px */

    /* Layout */
    --sidebar-width: 240px;
    --header-height: 64px;
    --max-width: 1200px;

    /* Border Radius */
    --border-radius: 0.25rem;
    --radius-sm: 0.25rem;    /* 4px */
    --radius: 0.5rem;        /* 8px */
    --radius-md: 0.75rem;    /* 12px */
    --radius-lg: 1rem;       /* 16px */
    --radius-xl: 1.5rem;     /* 24px */
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-primary: 0 0px 6px 1px rgba(245, 158, 11, 0.3), 0 0px 4px 2px rgba(245, 158, 11, 0.1);

    /* Typography */
    --font-header: 'Montserrat Alternates', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-primary: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;

    /* Font Sizes */
    --text-xs: 0.75rem;      /* 12px */
    --text-sm: 0.875rem;     /* 14px */
    --text-base: 1rem;       /* 16px */
    --text-lg: 1.125rem;     /* 18px */
    --text-xl: 1.25rem;      /* 20px */
    --text-2xl: 1.5rem;      /* 24px */
    --text-3xl: 1.875rem;    /* 30px */
    --text-4xl: 2.25rem;     /* 36px */
    --text-5xl: 3rem;        /* 48px */

    /* Font Weights */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;

    /* Line Heights */
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Z-Index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-toast: 1080;
}

.dark-mode {
    /* Enhanced Dark Mode Color System */
    --primary: #f59e0b;
    --primary-light: #fcd34d;
    --primary-x-light: #fcd34d44;
    --primary-xx-light: #fcd34d22;
    --primary-dark: #d97706;
    --primary-darker: #b45309;

    /* Typography Colors */
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --text-inverse: #111827;

    /* Background Colors */
    --bg-primary: #1f2937;
    --bg-secondary: #111827;
    --bg-tertiary: #273141;
    --bg-quaternary: #3b4553;

    /* Border Colors */
    --border-color: #374151;
    --border-color-light: #4b5563;
    --border-color-dark: #6b7280;

    /* Surface Colors */
    --surface: #253443;
    --surface-2: #203040;
    --surface-3: #374151;
    --surface-elevated: #1f2937;

    /* Status Colors */
    --success: #10b981;
    --success-light: #064e3b;
    --success-dark: #059669;
    --warning: #f59e0b;
    --warning-light: #451a03;
    --warning-dark: #d97706;
    /* --danger: #ff8484; */
    --danger: #ef4444;
    --danger-light: #7f1d1d;
    --danger-dark: #dc2626;
    --info: #3b82f6;
    --info-light: #1e3a8a;
    --info-dark: #2563eb;

    /* Shadows for dark mode */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.4), 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --shadow-primary: 0 0px 6px 1px rgba(245, 158, 11, 0.2), 0 0px 4px 2px rgba(245, 158, 11, 0.1);
}

.color-primary{
    color: var(--primary);
}

.color-success{
    color: var(--success);
}


* {
    box-sizing: border-box;
    font-family: 'Manrope', 'Plus Jakarta Sans', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    /* font-family: 'Montserrat Alternates', sans-serif; */
}

body {
    margin: 0;
    /* background-color: rgb(248 249 250); */
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

.text-italic{
    font-style:italic;
    /* font-family:cursive; */
}

.text-center{
    text-align:center;
}

.full{
    width:100%;
}

/* Enhanced Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-constent: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    font-weight: var(--font-medium);
    font-size: var(--text-sm);
    line-height: var(--leading-tight);
    text-decoration: none;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    user-select: none;
    font-family: inherit;
}

.btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Button Variants */
.btn.primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-inverse);
    box-shadow: var(--shadow-sm);
}

.btn.primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-darker) 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn.secondary {
    background: var(--surface);
    color: var(--text-primary);
    border-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn.secondary:hover:not(:disabled) {
    background: var(--surface-2);
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn.outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn.outline:hover:not(:disabled) {
    background: var(--surface);
    border-color: var(--primary);
    color: var(--primary);
}

.btn.ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: transparent;
}

.btn.ghost:hover:not(:disabled) {
    background: var(--surface);
    color: var(--text-primary);
}

/* Button Sizes */
.btn.sm {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: var(--text-xs);
    border-radius: var(--radius);
}

.btn.lg {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--text-base);
    border-radius: var(--radius-lg);
}

.btn.xl {
    padding: var(--spacing-lg) var(--spacing-2xl);
    font-size: var(--text-lg);
    border-radius: var(--radius-lg);
}

/* Button States */
.btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Icon Buttons */
.btn.icon-only {
    padding: var(--spacing-sm);
    aspect-ratio: 1;
}

.btn.icon-only.sm {
    padding: var(--spacing-xs);
}

.btn.icon-only.lg {
    padding: var(--spacing-md);
}

a{
    cursor:pointer;
    color:inherit;
    text-decoration:none;
}

.row{
    display:flex;
}

.col{
    display:flex;
    flex-direction:column;
}

.flex-center{
    display:flex;
    align-items:center;
    justify-content:center;
}

.flex-j-end{
    display:flex;
    justify-content:flex-end;
}

.flex-a-end{
    display:flex;
    align-items:flex-end;
}

.i-flex{
    display:inline-flex;
}

.ai-c{
    align-items:center;
}

.jc-c{
    justify-content:center;
}

.jc-sb{
    justify-content:space-between;
}


.jc-se{
    justify-content:space-evenly;
}

.g-02{
    gap:0.2em;
}
.g-05{
    gap:0.5em;
}
.g-1{
    gap:1em;
}
.g-2{
    gap:2em;
}
.g-3{
    gap:3em;
}
.g-4{
    gap:4em;
}

/* Margin xy */
.m-0{
    margin:0;
}

/* Margin top */
.mt-1{
    margin-top:1em;
}

.mt-2{
    margin-top:2em;
}

.mt-3{
    margin-top:3em;
}


/* Margin bottom */
.mb-1{
    margin-bottom:1em;
}

.mb-2{
    margin-bottom:2em;
}

.mb-3{
    margin-bottom:3em;
}


 /*Horizontal margin*/
.hm-1
{
    margin:0 1em;
}

/* Vertical margin */
.vm-1
{
    margin:1em 0;
}

/* Vertical padding */
.vp-1
{
    padding:1em 0;
}

.p-1{
    padding:1em;
}

.ls{
    letter-spacing:0.15em;
}


.clickable{
    cursor:pointer;
}

select, input:not(input[type="checkbox"], input[type="range"]){
    /* height:3em; */
    /* width:100%; */
    color:inherit;
    /* padding-left:2em; */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

@media (hover: hover) and (pointer: fine) {
    button, [class*=btn]{
        cursor:pointer;
    }
}


.sm-s{
    display:none !important;
}

@media screen and (max-width: 1080px) {
    .lg-s{
        display:none !important;
    }
    .sm-s{
        display:block !important;
    }
}

@media screen and (max-width: 768px) {
    .lg-s-2{
        display:none !important;
    }
    /* .sm-s{
        display:block !important;
    } */
}



.btn-primary, .btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-2);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--surface-2);
    transform: translateY(-2px);
}




/* Custom popup styles */
#showPopup.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#showPopup.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

#showPopup .popup {
    background-color: var(--surface);
    width: 90%;
    max-width: 400px;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 10px 30px var(--shadow);
    transform: translateY(-20px);
    transition: all 0.3s ease;
    position: relative;
}

#showPopup.popup-overlay.active .popup {
    transform: translateY(0);
}

#showPopup .popup-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

#showPopup .popup-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
}

#showPopup .popup-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    font-family:var(--font-header);
}

#showPopup .popup-content {
    font-size: 15px;
    line-height: 1.5;
    color: #888;
    margin-bottom: 20px;
    max-height: 55vh;
    overflow: auto;
    scrollbar-width: thin;
}

#showPopup .popup-button {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(to right, var(--primary-dark), var(--primary));
    color: var(--bg-primary);
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
}

#showPopup .popup-button:hover {
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
}

#showPopup .popup-icon{
    /* background-color: var(--primary-x-light); */
    color:var(--primary);
    padding:0.2em;
    border-radius:0.2em;
}

#showPopup .popup-success .popup-icon {
    color: #039d0e;
}

#showPopup .popup-error .popup-icon {
    color: #F44336;
}

#showPopup .popup-warning .popup-icon {
    color: var(--primary-dark);
}


.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--success);
    color: white;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-2);
    z-index: 10001;
    transform: translateX(400px);
    transition: all 0.3s ease;
    max-width: 50%;
}

.toast.show {
    transform: translateX(0);
}

.toast.error {
    background: var(--danger);
}


/* Form input */
.form-input {
    background: var(--bg-secondary);
    border-radius: 0.5em;
}