/* ========================================
   BASE STYLES & CSS VARIABLES
   TradeSmart.live
   ======================================== */

:root {
    /* Primary Colors */
    --primary: #10B981;
    --primary-dark: #059669;
    --primary-light: #34D399;
    --primary-transparent: rgba(16, 185, 129, 0.1);

    /* Legacy aliases */
    --green: #10B981;
    --green-hover: #059669;
    --blue: #3B82F6;

    /* Danger */
    --red: #EF4444;
    --red-hover: #DC2626;

    /* Warning */
    --orange: #F59E0B;
    --yellow: #EAB308;

    /* Info */
    --cyan: #06B6D4;
    --purple: #8B5CF6;

    /* Neutrals */
    --white: #FFFFFF;
    --black: #000000;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-850: #18202F;
    --gray-900: #111827;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.2s ease;
    --transition-slow: 0.3s ease;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.3);

    /* Z-index layers */
    --z-dropdown: 100;
    --z-sidebar: 100;
    --z-header: 50;
    --z-modal: 200;
    --z-toast: 300;
    --z-tooltip: 400;
}

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* Base body styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--black);
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--gray-900); }
::-webkit-scrollbar-thumb { background: var(--gray-700); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-600); }

/* Focus styles */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background: var(--primary);
    color: var(--black);
}

/* Utility classes */
.text-primary { color: var(--primary); }
.text-success { color: var(--green); }
.text-danger { color: var(--red); }
.text-warning { color: var(--orange); }
.text-muted { color: var(--gray-500); }

.bg-primary { background: var(--primary); }
.bg-success { background: var(--green); }
.bg-danger { background: var(--red); }
.bg-warning { background: var(--orange); }

.hidden { display: none !important; }
.visible { display: block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

/* Common button base */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
}

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

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

.btn-secondary {
    background: var(--gray-700);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--gray-600);
}

.btn-danger {
    background: var(--red);
    color: var(--white);
}

.btn-danger:hover {
    background: var(--red-hover);
}
