/* Global Styles - Minimalist & Bright */

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

:root {
    --primary: #111827;
    --accent-primary: #3b82f6;
    --accent-secondary: #2563eb;
    --accent-light: #dbeafe;
    --accent-lighter: #eff6ff;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #fafbfc;
    --bg-elevated: #f9fafb;
    --border-light: #f3f4f6;
    --border-subtle: #e5e7eb;
    --border-medium: #d1d5db;
    --white: #ffffff;
    --success: #10b981;
    --success-light: #d1fae5;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.06);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

html, body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Page wrapper for flexbox layout */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main content grows to fill space */
.slot-content {
    flex: 1;
}

/* Header - Clean & Minimal */
header {
    width: 100%;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    z-index: 1000;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-light);
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Footer */
.footer-section {
    margin-top: auto;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-top: 1px solid var(--border-light);
}

.support-modal {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: var(--accent-light);
    color: var(--accent-secondary);
}

::-moz-selection {
    background: var(--accent-light);
    color: var(--accent-secondary);
}

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

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Spinner inline animation */
@keyframes spinLoader {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spinner-inline {
    display: inline-block;
    animation: spinLoader 0.8s linear infinite;
    margin-right: 4px;
}