/* A11yDesignPro - Enterprise Minimalist Design System */

/* Import Inter Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Design System Variables */
:root {
    /* Monochromatic Palette - Light Mode */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F9FA;
    --bg-tertiary: #F1F3F5;
    --text-primary: #1A1A1A;
    --text-secondary: #6C757D;
    --text-muted: #ADB5BD;
    --border-color: #E9ECEF;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.2);
    
    /* Premium Gradient Colors (The7 Inspired) */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-blue: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-hero: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e8ba3 100%);
    
    /* Accent Colors */
    --accent-primary: #4A90E2; /* Premium Blue */
    --accent-secondary: #5B8DEF; /* Light Blue */
    --accent-success: #34C759; /* Green for Pass */
    --accent-danger: #FF3B30; /* Red for Fail */
    --accent-warning: #FFD60A; /* Yellow */
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
}

[data-theme="dark"] {
    /* Monochromatic Palette - Dark Mode (Default) */
    --bg-primary: #0D1117;
    --bg-secondary: #161B22;
    --bg-tertiary: #21262D;
    --text-primary: #F0F6FC;
    --text-secondary: #C9D1D9;
    --text-muted: #8B949E;
    --border-color: #30363D;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.7);
    
    /* Dark Mode Gradients */
    --gradient-hero: linear-gradient(135deg, #0D1117 0%, #1E3C72 50%, #2a5298 100%);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-weight: var(--font-weight-normal);
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(at 40% 20%, rgba(74, 144, 226, 0.03) 0px, transparent 50%),
        radial-gradient(at 80% 0%, rgba(91, 141, 239, 0.03) 0px, transparent 50%),
        radial-gradient(at 0% 50%, rgba(74, 144, 226, 0.02) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] body {
    background-image: 
        radial-gradient(at 40% 20%, rgba(74, 144, 226, 0.05) 0px, transparent 50%),
        radial-gradient(at 80% 0%, rgba(91, 141, 239, 0.05) 0px, transparent 50%),
        radial-gradient(at 0% 50%, rgba(74, 144, 226, 0.03) 0px, transparent 50%);
}

/* Default to Light Mode */
body:not([data-theme]) {
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F9FA;
    --bg-tertiary: #F1F3F5;
    --text-primary: #1A1A1A;
    --text-secondary: #6C757D;
    --text-muted: #ADB5BD;
    --border-color: #E9ECEF;
}

/* Typography - Premium The7 Style */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.display-1, .display-2, .display-3, .display-4, .display-5 {
    font-weight: var(--font-weight-extrabold);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

h1 { 
    font-size: 3.5rem; 
    font-weight: var(--font-weight-extrabold);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

h2 { 
    font-size: 2.75rem; 
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

h3 { 
    font-size: 2.25rem; 
    font-weight: var(--font-weight-bold);
    line-height: 1.3;
}

h4 { 
    font-size: 1.75rem; 
    font-weight: var(--font-weight-semibold);
}

h5 { 
    font-size: 1.35rem; 
    font-weight: var(--font-weight-semibold);
}

h6 { 
    font-size: 1.1rem; 
    font-weight: var(--font-weight-semibold);
}

p, li {
    font-weight: var(--font-weight-normal);
    color: var(--text-secondary);
}

/* Sticky Header - Premium Design */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .navbar {
    background: rgba(13, 17, 23, 0.85) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary) !important;
    text-decoration: none;
}

/* Premium Navigation Links */
.nav-link {
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.75rem 1.25rem !important;
    border-radius: 8px;
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-primary) !important;
    background: rgba(74, 144, 226, 0.1);
}

.nav-link.active {
    color: var(--accent-primary) !important;
    font-weight: var(--font-weight-semibold);
    background: rgba(74, 144, 226, 0.15);
}

.nav-link.active::before {
    width: 80%;
}

[data-theme="dark"] .nav-link:hover {
    background: rgba(74, 144, 226, 0.2);
}

[data-theme="dark"] .nav-link.active {
    background: rgba(74, 144, 226, 0.25);
}

/* Dark Mode Toggle */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-toggle:hover {
    background: var(--bg-tertiary);
    transform: scale(1.05);
}

/* Premium Glassmorphism Card - The7 Inspired */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 1px 0 rgba(255, 255, 255, 0.5) inset;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(74, 144, 226, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.glass-card:hover::before {
    opacity: 1;
}

[data-theme="dark"] .glass-card {
    background: rgba(22, 27, 34, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

/* Desktop hover effect */
@media (min-width: 768px) {
    .glass-card:hover {
        transform: translateY(-4px);
        box-shadow: 
            0 16px 48px rgba(0, 0, 0, 0.12),
            0 1px 0 rgba(255, 255, 255, 0.5) inset;
    }
    
    [data-theme="dark"] .glass-card:hover {
        box-shadow: 
            0 16px 48px rgba(0, 0, 0, 0.6),
            0 1px 0 rgba(255, 255, 255, 0.05) inset;
    }
}

/* Neumorphism Input */
.neumorphic-input {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 
        inset 2px 2px 4px rgba(0, 0, 0, 0.1),
        inset -2px -2px 4px rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
    color: var(--text-primary);
}

[data-theme="dark"] .neumorphic-input {
    box-shadow: 
        inset 2px 2px 4px rgba(0, 0, 0, 0.3),
        inset -2px -2px 4px rgba(255, 255, 255, 0.02);
}

.neumorphic-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.06),
        0 0 0 4px rgba(74, 144, 226, 0.15),
        0 4px 12px rgba(74, 144, 226, 0.1);
    transform: translateY(-1px);
}

[data-theme="dark"] .neumorphic-input:focus {
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        0 0 0 4px rgba(74, 144, 226, 0.2),
        0 4px 12px rgba(74, 144, 226, 0.15);
}

/* Input field focus glow effect - Premium */
.form-control:focus {
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.15) !important;
}

/* Color Input with Swatch */
.color-input-group {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.color-swatch {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: background-color 0.5s ease, transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

/* Smooth color transitions for color blocks */
.color-swatch,
.live-preview-container,
.live-preview-text {
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Desktop only hover effects */
@media (min-width: 768px) {
    .color-swatch:hover {
        transform: scale(1.05);
        box-shadow: var(--shadow-lg);
    }
}

/* Premium Live Preview Container */
.live-preview-container {
    min-height: 220px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--border-color);
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: 
        inset 0 2px 8px rgba(0, 0, 0, 0.1),
        0 4px 16px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .live-preview-container {
    box-shadow: 
        inset 0 2px 8px rgba(0, 0, 0, 0.3),
        0 4px 16px rgba(0, 0, 0, 0.4);
}

.live-preview-text {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    transition: color 0.5s ease;
}

/* Premium CTA Button - The7 Style */
.btn-accent {
    background: var(--gradient-blue);
    color: #FFFFFF;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: var(--font-weight-semibold);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 16px rgba(74, 144, 226, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.3px;
}

.btn-accent::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-accent:hover::after {
    width: 300px;
    height: 300px;
}

/* Desktop only hover effects for buttons */
@media (min-width: 768px) {
    .btn-accent:hover {
        transform: translateY(-3px);
        box-shadow: 
            0 8px 24px rgba(74, 144, 226, 0.5),
            0 4px 8px rgba(0, 0, 0, 0.15);
    }
    
    .btn-accent:active {
        transform: translateY(-1px);
        box-shadow: 
            0 4px 12px rgba(74, 144, 226, 0.4),
            0 2px 4px rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 767px) {
    .btn-accent:active {
        opacity: 0.8;
    }
}

.btn-accent::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

@media (min-width: 768px) {
    .btn-accent:hover::before {
        width: 300px;
        height: 300px;
    }
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.btn-accent.pulse {
    animation: pulse 2s infinite;
}

/* Premium Hero Section */
.hero-section {
    background: var(--gradient-hero);
    padding: 4rem 0;
    margin: -2rem -1rem 4rem -1rem;
    border-radius: 0 0 40px 40px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-section * {
    position: relative;
    z-index: 1;
}

[data-theme="dark"] .hero-section {
    background: var(--gradient-hero);
}

/* Circular Progress for Contrast Ratio - Premium Style */
.contrast-ratio-display {
    width: 220px;
    height: 220px;
    margin: 2rem auto;
    position: relative;
    --ratio-percent: 0;
}

.ratio-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: conic-gradient(
        var(--accent-primary) 0deg,
        var(--accent-primary) calc(var(--ratio-percent, 0) * 3.6deg),
        var(--bg-tertiary) calc(var(--ratio-percent, 0) * 3.6deg),
        var(--bg-tertiary) 360deg
    );
    padding: 10px;
    box-shadow: 
        0 12px 40px rgba(74, 144, 226, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.ratio-circle::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0.3;
    filter: blur(8px);
    z-index: -1;
    transition: opacity 0.5s ease;
}

.contrast-ratio-display:hover .ratio-circle::before {
    opacity: 0.5;
}

.ratio-inner {
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ratio-value {
    font-size: 3rem;
    font-weight: var(--font-weight-extrabold);
    color: var(--text-primary);
    line-height: 1;
}

.ratio-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
    margin-top: 0.5rem;
}

/* Premium Status Card - The7 Style */
.status-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    margin: 2rem 0;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 1px 0 rgba(255, 255, 255, 0.1) inset;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.status-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.status-card:hover::before {
    transform: scaleX(1);
}

/* Desktop only hover effects */
@media (min-width: 768px) {
    .status-card:hover {
        transform: translateY(-6px);
        box-shadow: 
            0 12px 40px rgba(0, 0, 0, 0.12),
            0 1px 0 rgba(255, 255, 255, 0.1) inset;
        border-color: var(--accent-primary);
    }
}

[data-theme="dark"] .status-card {
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.4),
        0 1px 0 rgba(255, 255, 255, 0.03) inset;
}

/* Premium WCAG Badges */
.wcag-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-weight: var(--font-weight-semibold);
    font-size: 1rem;
    margin: 0.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.06);
    min-height: 44px;
    min-width: 44px;
    position: relative;
    cursor: help;
    letter-spacing: 0.3px;
}

.wcag-badge.pass {
    background: var(--accent-success);
    color: #FFFFFF;
    animation: fadeInPulse 0.5s ease-in;
}

.wcag-badge.fail {
    background: var(--accent-danger);
    color: #FFFFFF;
}

/* Pulse animation for PASS badges */
@keyframes fadeInPulse {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Desktop only hover effects */
@media (min-width: 768px) {
    .wcag-badge:hover {
        transform: translateY(-2px) scale(1.02);
        box-shadow: 
            0 8px 20px rgba(0, 0, 0, 0.15),
            0 4px 8px rgba(0, 0, 0, 0.1);
    }
}

/* Tooltip Styles */
.wcag-badge[data-tooltip] {
    position: relative;
}

.wcag-badge[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: var(--font-weight-normal);
    white-space: nowrap;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    margin-bottom: 0.5rem;
    pointer-events: none;
}

.wcag-badge[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--border-color);
    margin-bottom: -1px;
    z-index: 1001;
    pointer-events: none;
}

/* Results Section */
#results {
    animation: fadeIn 0.5s ease-in;
    margin-top: 3rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer - Multi-column */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h5 {
    font-weight: var(--font-weight-semibold);
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: var(--font-weight-normal);
}

.footer-column a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* AdSense Container Styling */
.adsense-container {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Whitespace & Spacing */
/* Premium Section Spacing */
.section-spacing {
    margin: 4rem 0;
    padding: 0 1rem;
}

.hero-section + .container .section-spacing {
    margin-top: 0;
}

.container-spacing {
    padding: 3rem 0;
}

/* Loading Progress Bar */
.loading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 2px 4px rgba(255, 214, 10, 0.3);
}

.loading-progress.active {
    opacity: 1;
    width: 100%;
    animation: loadingAnimation 1.5s ease-in-out infinite;
}

@keyframes loadingAnimation {
    0% {
        width: 0%;
        left: 0;
    }
    50% {
        width: 70%;
        left: 30%;
    }
    100% {
        width: 100%;
        left: 0;
    }
}

/* Premium Form Inputs */
.form-control,
.neumorphic-input,
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    min-height: 44px;
    padding: 0.875rem 1.25rem;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.neumorphic-input {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.06),
        0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .neumorphic-input {
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        0 1px 0 rgba(255, 255, 255, 0.02);
}

/* Mobile-First: Content Prioritization */
@media (max-width: 767px) {
    /* Prevent horizontal scroll */
    * {
        max-width: 100%;
    }
    
    /* Typography adjustments */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    /* Ensure touch targets are at least 44x44px */
    .nav-link,
    .btn-accent,
    .wcag-badge,
    button,
    a.btn,
    .form-control,
    .neumorphic-input,
    input[type="text"],
    input[type="email"],
    input[type="password"],
    textarea,
    select {
        min-height: 44px;
        min-width: 44px;
        padding: 0.75rem 1rem;
    }
    
    /* Increase spacing between form elements for easier tapping */
    .mb-3,
    .form-group {
        margin-bottom: 1.25rem !important;
    }
    
    /* Spacing adjustments */
    .section-spacing {
        margin: 2rem 0;
    }
    
    .contrast-ratio-display {
        width: 150px;
        height: 150px;
    }
    
    .ratio-value {
        font-size: 2rem;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
    }
    
    /* Hide hover effects on mobile */
    .status-card:hover,
    .wcag-badge:hover,
    .btn-accent:hover {
        transform: none;
    }
    
    /* Table responsive wrapper */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Color input group mobile optimization */
    .color-input-group {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .color-swatch {
        width: 50px;
        height: 50px;
        min-width: 50px;
        min-height: 50px;
    }
}

/* Tablet and Desktop */
@media (min-width: 768px) {
    .color-input-group {
        flex-direction: row;
    }
}

/* Desktop only (1024px+) */
@media (min-width: 1024px) {
    .status-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
    }
}

/* Ripple Animation */
@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: ripple-animation 600ms ease-out;
    pointer-events: none;
}

/* Utility Classes */
.text-accent {
    color: var(--accent-primary);
}

.bg-accent {
    background: var(--accent-primary);
}

.shadow-neumorphic {
    box-shadow: 
        8px 8px 16px rgba(0, 0, 0, 0.1),
        -8px -8px 16px rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .shadow-neumorphic {
    box-shadow: 
        8px 8px 16px rgba(0, 0, 0, 0.3),
        -8px -8px 16px rgba(255, 255, 255, 0.02);
}

