@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Modern color palette */
    --primary-color: #1a365d;
    --primary-light: #2d5a87;
    --primary-dark: #0f2a4a;
    
    --secondary-color: #38b2ac;
    --secondary-light: #4fd1c7;
    --secondary-dark: #319795;
    
    --accent-color: #f7fafc;
    --accent-light: #ffffff;
    --accent-dark: #e2e8f0;
    
    --success-color: #48bb78;
    --warning-color: #ed8936;
    --error-color: #f56565;
    
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    
    --border-color: #e2e8f0;
    --border-light: #f7fafc;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
    
    /* Mobile-specific */
    --touch-target-min: 44px;
    --mobile-padding: 1rem;
    --mobile-gap: 0.75rem;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Mobile-first responsive breakpoints */
@media (max-width: 480px) {
    :root {
        --spacing-md: 0.75rem;
        --spacing-lg: 1rem;
        --spacing-xl: 1.5rem;
        --spacing-2xl: 2rem;
    }
}

/* Utility classes */
.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.font-weight-bold {
    font-weight: 600;
}

.font-weight-semibold {
    font-weight: 600;
}

.font-weight-medium {
    font-weight: 500;
}

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

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

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

/* Modern button styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1.25rem;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
    text-decoration: none;
    gap: var(--spacing-xs);
    min-height: var(--touch-target-min);
    min-width: var(--touch-target-min);
}

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

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background-color: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Card styles */
.card {
    background: var(--accent-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* Focus styles for accessibility */
*:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

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

/* Mobile optimizations */
@media (max-width: 768px) {
    /* Improve touch targets */
    button, 
    [role="button"], 
    a {
        min-height: var(--touch-target-min);
        min-width: var(--touch-target-min);
    }
    
    /* Better mobile spacing */
    .container {
        padding: var(--mobile-padding);
    }
    
    /* Improve text readability on mobile */
    body {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Better mobile shadows */
    .card {
        box-shadow: var(--shadow-sm);
    }
    
    .card:hover {
        box-shadow: var(--shadow-md);
        transform: none; /* Disable hover effects on mobile */
    }
}

/* Prevent horizontal scroll on mobile */
@media (max-width: 480px) {
    body {
        overflow-x: hidden;
    }
    
    * {
        max-width: 100%;
    }
}
