/* ============================================================
   UNO MANAGEMENT — GLOBAL STYLESHEET
   Shared across ALL admin pages.
   Contains: design tokens, reset, layout, topbar,
   buttons, form inputs, toast.
   Sidebar styles live in sidebar.css.
   ============================================================ */


/* ============================================================
   DESKTOP
   ============================================================ */


/* -- 1. Design Tokens ----------------------------------------- */
:root {
    color-scheme: light;

    /* Backgrounds */
    --color-bg: #f5f5f5;
    --color-white: #ffffff;

    /* Text */
    --color-text: #1a2332;
    --color-text-secondary: #5a6578;
    --color-text-muted: #8f9bb3;

    /* Brand colors */
    --color-blue: #3d6b9e;
    --color-blue-light: #ebf2fa;
    --color-blue-hover: #2f5680;
    --color-orange: #d97a35;
    --color-orange-light: #fef3e8;
    --color-green: #4a9c6d;
    --color-green-light: #edf7f1;
    --color-red: #d94452;
    --color-red-light: #fdeef0;
    --color-yellow: #d4a020;
    --color-yellow-light: #fdf6e3;

    /* Borders */
    --color-border: #dfe3ea;
    --color-border-light: #eef1f5;

    /* Shadows */
    --shadow-small: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-medium: 0 4px 16px rgba(0,0,0,0.08);

    /* Border radius */
    --radius-small: 8px;
    --radius-medium: 10px;
    --radius-large: 14px;

    /* Font family */
    --font-family-main: 'Mulish', -apple-system, sans-serif;
    --font-family-mono: 'DM Mono', monospace;

    /* Font sizes (md=12px is the system minimum) */
    --font-size-md: 12px;
    --font-size-base: 13px;
    --font-size-lg: 14px;
    --font-size-xl: 15px;
    --font-size-2xl: 16px;
    --font-size-3xl: 18px;
  	--font-size-4xl: 20px;
	--font-size-5xl: 24px;
	--font-size-6xl: 28px;

    /* Layout */
    --sidebar-width: 250px;
    --topbar-height: 60px;
}


/* -- 2. Reset & Base ------------------------------------------ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-family-main);
    font-size: var(--font-size-lg);
    min-height: 100vh;
}

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


/* -- 3. Layout (sidebar + main wrapper) ----------------------- */
.layout {
    display: flex;
    min-height: 100vh;
}

.main {
    margin-left: var(--sidebar-width);
    flex: 1;
    transition: margin-left 0.25s ease;
}



/* -- 4. Top Bar ----------------------------------------------- */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 36px;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 10;
    min-height: var(--topbar-height);
}

.topbar-left h1 {
    font-size: var(--font-size-3xl);
    font-weight: 800;
}

.topbar-left .sub {
    font-size: var(--font-size-xl);
    color: var(--color-text-muted);
    margin-top: 2px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}


/* -- 5. Content Area ------------------------------------------ */
.content {
    padding: 28px 36px;
    max-width: 1100px;
    margin: 0 auto;
}


/* -- 6. Buttons (global) ------------------------------------- */
.btn {
    padding: 9px 18px;
    border-radius: var(--radius-small);
    font-size: var(--font-size-base);
    font-family: var(--font-family-main);
    font-weight: 400;
    cursor: pointer;
    transition: all 0.15s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary {
    background: var(--color-blue);
    color: white;
}

.btn-primary:hover { background: var(--color-blue-hover); }

.btn-secondary {
    background: var(--color-white);
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-bg);
    color: var(--color-text);
}


/* -- 7. Form Inputs (global default) ------------------------- */
select {
    appearance: none;
    -webkit-appearance: none;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);
    padding: 9px 36px 9px 14px;
    color: var(--color-text);
    font-family: var(--font-family-main);
    font-size: var(--font-size-lg);
    font-weight: 400;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238f9bb3' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

select:focus {
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(61,107,158,0.1);
}


/* -- 8. Toast Notification (global) -------------------------- */
.toast {
    display: none;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 480px;
    max-width: 90vw;
    background: #edfaf3;
    border: 1px solid #c3e8d4;
    border-top: none;
    border-radius: 0 0 10px 10px;
    padding: 11px 18px;
    z-index: 9999;
    box-shadow: var(--shadow-medium);
    align-items: center;
 	justify-content: center; 
    gap: 10px;
    font-size: var(--font-size-xl);
    font-weight: 500;
    color: #2d6a4f;
}

.toast.show { display: flex; }

.toast.err {
    background: #fdf2f2;
    border-color: #f0cccc;
    color: #7a2929;
}

.toast-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #c3e8d4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-md);
    color: #2d6a4f;
    flex-shrink: 0;
    font-weight: 700;
}

.toast.err .toast-icon {
    background: #f0cccc;
    color: #7a2929;
}


/* ============================================================
   END DESKTOP
   ============================================================ */




/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 768px) {

    /* -- Layout (mobile) -------------------------------------- */
    .sidebar { display: none; }
    .main    { margin-left: 0; }

    /* -- Top Bar (mobile) ------------------------------------- */
    .topbar { padding: 14px 16px; }

    /* -- Content Area (mobile) -------------------------------- */
    .content { padding: 20px 16px; }

}
/* ============================================================
   END MOBILE
   ============================================================ */
