/**
 * Base Styling - Qu-Mail Color Palette
 * Generated from: https://coolors.co/b8d8d8-7a9e9f-4f6367-eef5db-fe5f55
 */

/* ========================================
   CSS Color Variables
   ======================================== */
:root {
    /* Primary Color Palette */
    --light-blue: #00bcd4;
    --cool-steel: #4caf50;
    --blue-slate: #1e3a5f;
    --beige: #f5f5f5;
    --vibrant-coral: #ff6b35;

    /* Color Variations (Light) */
    --light-blue-light: rgba(0, 188, 212, 0.1);
    --cool-steel-light: rgba(76, 175, 80, 0.1);
    --blue-slate-light: rgba(30, 58, 95, 0.1);
    --beige-light: rgba(245, 245, 245, 0.1);
    --vibrant-coral-light: rgba(255, 107, 53, 0.1);

    /* Color Variations (Dark) */
    --light-blue-dark: #0097a7;
    --cool-steel-dark: #388e3c;
    --blue-slate-dark: #152740;
    --beige-dark: #e0e0e0;
    --vibrant-coral-dark: #e5572b;

    /* Semantic Color Mapping */
    --primary-color: var(--cool-steel);
    --primary-hover: var(--cool-steel-dark);
    --primary-light: var(--cool-steel-light);

    --secondary-color: var(--blue-slate);
    --secondary-hover: var(--blue-slate-dark);
    --secondary-light: var(--blue-slate-light);

    --accent-color: var(--vibrant-coral);
    --accent-hover: var(--vibrant-coral-dark);
    --accent-light: var(--vibrant-coral-light);

    /* Status Colors */
    --success-color: var(--cool-steel);
    --danger-color: var(--vibrant-coral);
    --warning-color: #f59e0b;
    --info-color: var(--light-blue);

    /* Neutral Colors */
    --dark-bg: var(--blue-slate);
    --light-bg: var(--beige);
    --medium-bg: var(--light-blue);
    --white: #ffffff;
    --border-color: var(--light-blue);
    --text-primary: var(--blue-slate);
    --text-secondary: var(--cool-steel);
    --text-muted: #94a3b8;
    --text-on-dark: var(--beige);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--light-blue), var(--cool-steel), var(--blue-slate));
    --gradient-secondary: linear-gradient(180deg, var(--beige), var(--light-blue));
    --gradient-accent: linear-gradient(45deg, var(--vibrant-coral), var(--cool-steel));
    --gradient-radial: radial-gradient(circle, var(--light-blue), var(--cool-steel), var(--blue-slate));

    /* 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-xl: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(79, 99, 103, 0.05);
    --shadow-md: 0 4px 6px rgba(79, 99, 103, 0.1);
    --shadow-lg: 0 10px 25px rgba(79, 99, 103, 0.15);
    --shadow-xl: 0 20px 50px rgba(79, 99, 103, 0.2);

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

    /* Layout */
    --top-nav-height: 60px;
    --sidebar-width: 250px;
    --email-list-width: 380px;
    --chat-panel-width: 400px;
}

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

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow: hidden;
    background: var(--light-bg);
    color: var(--text-primary);
    line-height: 1.5;
}

/* ========================================
   Scrollbar Styling
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--cool-steel);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--cool-steel-dark);
}

/* ========================================
   Utility Classes
   ======================================== */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.bg-accent {
    background-color: var(--accent-color) !important;
}

.text-primary {
    color: var(--text-primary) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
