/* Global theme toggle (site-wide, safe to include on any page) */
/* CSS Variables for Light Theme */

:root 
{
    /* Colors - Enhanced contrast for better visual hierarchy */
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #7c3aed;
    --accent-color: #0891b2;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;

    /* Background colors - Optimized for gradients with better visual separation */
    --bg-primary: #ffffff;
    --bg-secondary: #f1f5f9;  /* Softer blue-gray for better gradients */
    --bg-tertiary: #e2e8f0;   /* Balanced mid-tone */
    --border-color: #d1d5db;  /* Softer border that works with backgrounds */
    --disabled-color: darkgray;
    --card-bg: #ffffff;
    --header-bg: rgba(255, 255, 255, 0.98);
    
    /* Shadows - Refined for more natural depth */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.12), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Typography - Added font-weight variables */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-serif: 'Source Serif Pro', Georgia, serif;
    
    /* Spacing - Maintained consistent ratio */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    
    /* Border Radius - Slightly softened for modern look */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
    /* Transitions - Smoother timing */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}
/* Dark Theme Variables */
[data-theme="dark"] 
{
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --bg-tertiary: #374151;
    --border-color: #4b5563;
    --card-bg: #1f2937;
    --header-bg: rgba(17, 24, 39, 0.95);
}

/* Theme Toggle */
.theme-toggle 
{
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    background-color:transparent;/* var(--bg-tertiary);*/
    transition: all var(--transition-fast);
    position: relative;
}

.theme-toggle:hover 
{
    background-color: var(--border-color);
    transform: rotate(30deg);
}

.theme-toggle .fa-sun 
{
    display: none;
}

[data-theme="dark"] .theme-toggle .fa-moon 
{
    display: none;
}

[data-theme="dark"] .theme-toggle .fa-sun 
{
    display: block;
}
