﻿/* ============================================================
   Sedap & Santai POS System â€” Design System
   Version: 1.0
   
   Table of Contents:
     1. Design Tokens (CSS Custom Properties)
     2. Reset & Base
     3. Typography
     4. Layout â€” Login Page
     5. Layout â€” App Shell (Sidebar + Main)
     6. Sidebar
     7. Header
     8. Page Content
     9. Buttons
    10. Forms
    11. Cards
    12. Tables
    13. Badges & Pills
    14. Alerts
    15. Modals
    16. Toast Notifications
    17. Loading & Spinner
    18. Empty State & Placeholder
    19. Utilities
    20. Vendor Card Grid
    21. Filter Bar
    22. Tab Navigation
    23. Metric Cards
    24. Metric Cards (Small)
    25. Revenue Bar Chart
    26. Responsive Breakpoints
   ============================================================ */


/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */

:root {
    /* â”€â”€ Primary (Pink) â”€â”€ */
    --color-primary: #EC4899;
    --color-primary-hover: #DB2777;
    --color-primary-active: #BE185D;
    --color-primary-light: #FCE7F3;
    --color-primary-bg: #FDF2F8;

    /* â”€â”€ Neutral / Surface â”€â”€ */
    --color-bg: #FFF5F7;
    --color-surface: #FFFFFF;
    --color-border: #F3D5E0;
    --color-border-hover: #E8B4CC;
    --color-divider: #FFF0F3;

    /* â”€â”€ Text â”€â”€ */
    --color-text: #1A1A2E;
    --color-text-secondary: #5C4B5E;
    --color-text-muted: #A08B96;
    --color-text-inverse: #FFFFFF;

    /* â”€â”€ Semantic â”€â”€ */
    --color-success: #16A34A;
    --color-success-light: #DCFCE7;
    --color-success-hover: #15803D;
    --color-warning: #D97706;
    --color-warning-light: #FEF3C7;
    --color-warning-hover: #B45309;
    --color-danger: #DC2626;
    --color-danger-light: #FEE2E2;
    --color-danger-hover: #B91C1C;
    --color-info: #0EA5E9;
    --color-info-light: #E0F2FE;

    /* â”€â”€ Sidebar (Light Pink) â”€â”€ */
    --sidebar-bg: #FFFFFF;
    --sidebar-bg-hover: #FDF2F8;
    --sidebar-bg-active: #EC4899;
    --sidebar-text: #7C6872;
    --sidebar-text-hover: #1A1A2E;
    --sidebar-text-active: #FFFFFF;
    --sidebar-width: 260px;
    --sidebar-width-collapsed: 0px;

    /* â”€â”€ Dimensions â”€â”€ */
    --header-height: 60px;
    --border-radius-sm: 4px;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    --border-radius-full: 9999px;

    /* â”€â”€ Shadows â”€â”€ */
    --shadow-xs: 0 1px 2px rgba(236, 72, 153, 0.04);
    --shadow-sm: 0 1px 3px rgba(236, 72, 153, 0.06), 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow: 0 4px 6px rgba(236, 72, 153, 0.06), 0 2px 4px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 6px 12px rgba(236, 72, 153, 0.08), 0 3px 6px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 12px 24px rgba(236, 72, 153, 0.1), 0 6px 12px rgba(0, 0, 0, 0.05);

    /* â”€â”€ Transitions â”€â”€ */
    --transition-fast: 100ms ease;
    --transition: 200ms ease;
    --transition-slow: 300ms ease;

    /* â”€â”€ Typography â”€â”€ */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-mono: 'Consolas', 'Monaco', 'Courier New', monospace;

    --text-xs: 0.75rem;     /* 12px */
    --text-sm: 0.8125rem;   /* 13px */
    --text-base: 0.875rem;  /* 14px */
    --text-md: 1rem;        /* 16px */
    --text-lg: 1.125rem;    /* 18px */
    --text-xl: 1.25rem;     /* 20px */
    --text-2xl: 1.5rem;     /* 24px */
    --text-3xl: 1.875rem;   /* 30px */

    --leading-tight: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.75;

    /* â”€â”€ Spacing â”€â”€ */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;

    /* â”€â”€ Z-Index â”€â”€ */
    --z-sidebar: 40;
    --z-overlay: 50;
    --z-modal: 60;
    --z-toast: 70;
}


/* ============================================================
   2. RESET & BASE
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
}

table {
    border-collapse: collapse;
    width: 100%;
}

hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: var(--space-4) 0;
}

::selection {
    background-color: var(--color-primary-light);
    color: var(--color-primary-active);
}


/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: var(--leading-tight);
    color: var(--color-text);
}

h1 { font-size: var(--text-2xl); }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); }
h4 { font-size: var(--text-md); }
h5 { font-size: var(--text-base); }

.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-md { font-size: var(--text-md); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }

.text-muted { color: var(--color-text-muted); }
.text-secondary { color: var(--color-text-secondary); }
.text-success { color: var(--color-success); }
.text-danger { color: var(--color-danger); }
.text-warning { color: var(--color-warning); }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-mono { font-family: var(--font-mono); }


/* ============================================================
   4. LAYOUT â€” LOGIN PAGE
   ============================================================ */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #EC4899 0%, #F9A8D4 40%, #FDF2F8 100%);
    padding: var(--space-4);
}

.login-card {
    background: var(--color-surface);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-10);
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.login-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-1);
}

.login-subtitle {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.login-form .form-group {
    margin-bottom: var(--space-5);
}

.login-form .btn-block {
    margin-top: var(--space-6);
}

.login-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
}

.google-signin-wrapper {
    display: flex;
    justify-content: center;
    min-height: 44px;
}

.login-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) 0;
}

.login-hint {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-align: center;
    margin-top: var(--space-2);
}

.login-body .alert {
    width: 100%;
}


