/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Yellow-Orange Color Palette */
    --primary-color: #FF8C00; /* Deep Orange */
    --primary-light: #FFA500; /* Orange */
    --primary-glow: #FFD700; /* Golden Yellow */
    --secondary-color: #FFB347; /* Light Orange */
    --background-color: #FFF9F0; /* Warm Off-White */
    --surface-color: #FFF5E6; /* Light Cream */
    --surface-glow: #FFF3D4; /* Yellowish Glow */
    --text-color: #333333; /* Dark Gray for contrast */
    --text-light: #666666; /* Medium Gray */
    --border-color: #FFE4B5; /* Moccasin */
    --border-glow: #FFE5B4; /* Peach Yellow */
    --success-color: #38B2AC; /* Teal */
    --warning-color: #FF8C00; /* Dark Orange */
    --error-color: #FF6B6B; /* Coral Red */
    --shadow: 0 2px 8px rgba(255, 140, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(255, 165, 0, 0.15);
    --glow: 0 0 15px rgba(255, 215, 0, 0.2);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Yellow-Orange Theme */
@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #1A1A1A; /* Dark Background */
        --surface-color: #262626; /* Dark Surface */
        --surface-glow: #333333; /* Dark Glow */
        --text-color: #F5F5F5; /* Light Text */
        --text-light: #CCCCCC; /* Light Gray */
        --border-color: #FFA500; /* Orange Border */
        --border-glow: #FF8C00; /* Dark Orange Glow */
        --shadow: 0 2px 8px rgba(255, 165, 0, 0.2);
        --shadow-lg: 0 10px 30px rgba(255, 140, 0, 0.25);
        --glow: 0 0 20px rgba(255, 215, 0, 0.3);
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 215, 0, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255, 165, 0, 0.03) 0%, transparent 20%);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

main {
    flex: 1;
    padding: 24px 0 60px;
}

/* Header - Modern Glassmorphism */
.site-header {
    background: rgba(255, 245, 230, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-glow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

@media (prefers-color-scheme: dark) {
    .site-header {
        background: rgba(38, 38, 38, 0.9);
        backdrop-filter: blur(20px) saturate(180%);
    }
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo a {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: var(--glow);
    letter-spacing: -0.5px;
}

.tagline {
    font-size: 0.875rem;
    color: var(--text-light);
    padding: 4px 12px;
    background: var(--surface-glow);
    border-radius: 20px;
    border: 1px solid var(--border-glow);
}

/* Navigation - Modern */
.main-nav {
    position: relative;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
    padding: 8px;
    background: var(--surface-glow);
    border-radius: var(--radius);
    transition: var(--transition);
}

.menu-toggle:hover {
    background: var(--border-glow);
    transform: rotate(90deg);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 8px 16px;
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-glow));
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-links a:hover {
    color: var(--primary-color);
    background: var(--surface-glow);
}

.nav-links a:hover::before {
    width: 80%;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--surface-color);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius);
    padding: 12px 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 12px 24px;
    white-space: nowrap;
    font-size: 0.95rem;
    border-radius: 0;
}

.dropdown-menu a:hover {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
}

/* Hero Section - Modern Gradient */
.hero {
    text-align: center;
    padding: 80px 0;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    z-index: -1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-glow), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
    letter-spacing: -1px;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Tools Grid - Modern Cards */
.tools-grid {
    margin: 80px 0;
}

.tools-grid h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-color);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.tools-grid h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-glow));
    border-radius: 2px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tool-card {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    border: 1px solid var(--border-glow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-glow));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.tool-card:hover::before {
    transform: scaleX(1);
}

.tool-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.tool-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.tool-card p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.6;
}

/* Buttons - Modern with Glow */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-glow));
    color: white;
    padding: 16px 36px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.4);
}

.btn:hover::before {
    left: 100%;
}

.btn-secondary {
    background: var(--surface-color);
    color: var(--text-color);
    border: 2px solid var(--border-glow);
    box-shadow: none;
}

.btn-secondary:hover {
    background: var(--surface-glow);
    border-color: var(--primary-color);
}

/* Calculator Forms - Modern Design */
.calculator-container {
    max-width: 800px;
    margin: 0 auto;
}

.calculator-form {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 3rem;
    margin-bottom: 3rem;
    border: 1px solid var(--border-glow);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.1rem;
}

.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    background: var(--background-color);
    color: var(--text-color);
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.15);
    background: var(--surface-glow);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23FF8C00' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 3rem;
}

/* Results - Modern Design */
.results {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 3rem;
    border: 1px solid var(--border-glow);
    box-shadow: var(--shadow);
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-color);
}

.result-item:last-child {
    border-bottom: none;
}

.result-value {
    font-weight: 800;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Ad Units - Yellow-Orange Theme */
.ad-unit {
    margin: 2.5rem auto;
    text-align: center;
    min-height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--surface-glow);
    border-radius: var(--radius);
    border: 1px solid var(--border-glow);
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

.ad-unit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-glow));
}

.ad-header {
    margin: 1.5rem auto;
    max-width: 728px;
}

.ad-incontent {
    margin: 3rem auto;
    max-width: 600px;
}

.ad-footer {
    margin: 2.5rem auto 0;
    max-width: 728px;
}

.ad-placeholder {
    background: linear-gradient(135deg, var(--surface-color), var(--surface-glow));
    border: 2px dashed var(--border-glow);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
    width: 100%;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.ad-label {
    color: var(--primary-color);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.ad-content {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.1rem;
}

/* Footer - Modern Design */
.site-footer {
    background: var(--surface-color);
    border-top: 1px solid var(--border-glow);
    padding: 4rem 0 2.5rem;
    margin-top: auto;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-glow));
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 1.5px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    padding: 4px 0;
    position: relative;
}

.footer-section a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-section a:hover::before {
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 0.9rem;
}

.disclaimer-note {
    margin-top: 1rem;
    font-style: italic;
    color: var(--text-light);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Invoice Generator - Modern Design */
.invoice-preview {
    background: var(--surface-color);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin-top: 3rem;
    border: 1px solid var(--border-glow);
    position: relative;
}

.invoice-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-glow));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.invoice-items {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2rem 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.invoice-items th,
.invoice-items td {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.invoice-items th {
    background: var(--surface-glow);
    font-weight: 700;
    color: var(--text-color);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.invoice-items tbody tr:hover {
    background: var(--surface-glow);
}

.invoice-total {
    text-align: right;
    margin-top: 2rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    padding-top: 1rem;
    border-top: 2px solid var(--border-color);
}

/* QR Code Generator */
.qr-container {
    text-align: center;
    margin: 3rem 0;
    padding: 3rem;
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-glow);
    box-shadow: var(--shadow);
}

#qrcode {
    display: inline-block;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-glow);
}

/* Policy & Guide Pages */
.policy-content,
.disclaimer-content,
.about-content,
.guide-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.policy-content section,
.disclaimer-content section,
.about-content section,
.guide-content section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--surface-color);
    border-radius: var(--radius);
    border: 1px solid var(--border-glow);
}

.policy-content h2,
.disclaimer-content h2,
.about-content h2,
.guide-content h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-glow);
    font-size: 2rem;
}

.policy-content h3,
.disclaimer-content h3,
.about-content h3,
.guide-content h3 {
    margin: 2rem 0 1rem;
    color: var(--text-color);
    font-size: 1.4rem;
}

/* Modern Grid Systems */
.tips-grid,
.features-grid,
.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.tip-card,
.feature-card,
.principle-card {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-glow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.tip-card::before,
.feature-card::before,
.principle-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-glow));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tip-card:hover,
.feature-card:hover,
.principle-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.tip-card:hover::before,
.feature-card:hover::before,
.principle-card:hover::before {
    transform: scaleX(1);
}

.tip-card h3,
.feature-card h3,
.principle-card h3 {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-color);
}

/* CTA Sections - Glowing Effect */
.cta-section {
    text-align: center;
    padding: 4rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-glow));
    color: white;
    border-radius: var(--radius-lg);
    margin: 4rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta-section h2 {
    color: white;
    border-bottom: none;
    position: relative;
    z-index: 1;
}

.cta-section .btn {
    background: white;
    color: var(--primary-color);
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.cta-section .btn:hover {
    background: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Form Row Styles */
.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: flex-end;
}

.form-row .form-group {
    margin-bottom: 0;
    flex: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--surface-color);
        border: 1px solid var(--border-glow);
        border-radius: var(--radius);
        padding: 1.5rem;
        box-shadow: var(--shadow-lg);
        z-index: 1000;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: 1rem;
        margin-top: 0.5rem;
        background: var(--surface-glow);
    }
    
    .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tools-grid h2 {
        font-size: 2rem;
    }
    
    .calculator-form,
    .invoice-preview,
    .qr-container {
        padding: 2rem 1.5rem;
    }
    
    .invoice-header {
        flex-direction: column;
        gap: 2rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        padding: 14px 28px;
    }
    
    .ad-placeholder {
        min-width: 100%;
        min-height: 120px;
        padding: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .ad-unit,
    .ad-placeholder,
    .site-footer,
    .btn {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .calculator-form {
        border: 1px solid #ddd;
        padding: 0;
        box-shadow: none;
    }
    
    .invoice-preview {
        box-shadow: none;
        border: 1px solid #000;
        page-break-inside: avoid;
    }
    
    .results {
        border: 1px solid #ddd;
        box-shadow: none;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles for Accessibility */
:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: var(--radius);
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--surface-color);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary-color), var(--primary-glow));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(var(--primary-glow), var(--primary-color));
}