/* YessFish - Modern Design System */
/* Complete overhaul for 2025 - Clean, professional, user-friendly */

/* GLOBAL TEXT READABILITY FIX */
* {
    color: var(--neutral-900) !important; /* Default dark text */
}

h1, h2, h3, h4, h5, h6 {
    color: var(--ocean-800) !important; /* Dark blue headings */
}

p, span, div, label, small, td, th, li {
    color: var(--neutral-800) !important; /* Dark gray text */
}

/* White text only on dark backgrounds */
.btn-primary, .btn-primary *, 
.badge-primary, .badge-primary *,
.bg-primary *, .bg-ocean *, .bg-deep *,
.gradient-primary *, .gradient-hero *,
.app-header *, .nav-menu * {
    color: white !important;
}

/* Hamburger menu with dark text */
.hamburger-menu {
    background: var(--neutral-50) !important;
}

.hamburger-menu *,
.hamburger-menu .menu-item,
.hamburger-menu .menu-text,
.hamburger-menu h3 {
    color: var(--ocean-800) !important;
}

.hamburger-menu .menu-item:hover {
    background: var(--ocean-100) !important;
}

.hamburger-menu .close-btn {
    color: var(--ocean-700) !important;
}

/* Links */
a {
    color: var(--ocean-700) !important;
}

a:hover {
    color: var(--ocean-900) !important;
}

/* YessFish Ocean-Themed Design System */
:root {
    /* Ocean Blue Palette */
    --ocean-50: #f0f9ff;
    --ocean-100: #e0f2fe;
    --ocean-200: #bae6fd;
    --ocean-300: #7dd3fc;
    --ocean-400: #38bdf8;
    --ocean-500: #0ea5e9;
    --ocean-600: #0284c7;
    --ocean-700: #0369a1;
    --ocean-800: #075985;
    --ocean-900: #0c4a6e;

    /* Deep Water Colors */
    --deep-50: #ecfeff;
    --deep-100: #cffafe;
    --deep-200: #a5f3fc;
    --deep-300: #67e8f9;
    --deep-400: #22d3ee;
    --deep-500: #06b6d4;
    --deep-600: #0891b2;
    --deep-700: #0e7490;
    --deep-800: #155e75;
    --deep-900: #164e63;

    /* Fish/Marine Life Accents */
    --coral-50: #fef7ee;
    --coral-100: #feecdc;
    --coral-200: #fed5b8;
    --coral-300: #fdba8a;
    --coral-400: #fb923c;
    --coral-500: #f97316;
    --coral-600: #ea580c;
    --coral-700: #c2410c;
    --coral-800: #9a3412;
    --coral-900: #7c2d12;

    /* Primary Colors (Ocean Blue) */
    --primary-50: var(--ocean-50);
    --primary-100: var(--ocean-100);
    --primary-200: var(--ocean-200);
    --primary-300: var(--ocean-300);
    --primary-400: var(--ocean-400);
    --primary-500: var(--ocean-500);
    --primary-600: var(--ocean-600);
    --primary-700: var(--ocean-700);
    --primary-800: var(--ocean-800);
    --primary-900: var(--ocean-900);

    /* Secondary Colors (Deep Water) */
    --secondary-50: var(--deep-50);
    --secondary-100: var(--deep-100);
    --secondary-200: var(--deep-200);
    --secondary-300: var(--deep-300);
    --secondary-400: var(--deep-400);
    --secondary-500: var(--deep-500);
    --secondary-600: var(--deep-600);
    --secondary-700: var(--deep-700);
    --secondary-800: var(--deep-800);
    --secondary-900: var(--deep-900);

    /* Neutral Colors */
    --neutral-50: #f8fafc;
    --neutral-100: #f1f5f9;
    --neutral-200: #e2e8f0;
    --neutral-300: #cbd5e1;
    --neutral-400: #94a3b8;
    --neutral-500: #64748b;
    --neutral-600: #475569;
    --neutral-700: #334155;
    --neutral-800: #1e293b;
    --neutral-900: #0f172a;

    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: var(--primary-500);

    /* Ocean-Themed Gradients */
    --gradient-primary: linear-gradient(135deg, var(--ocean-600) 0%, var(--deep-600) 100%);
    --gradient-hero: linear-gradient(135deg, var(--ocean-800) 0%, var(--ocean-600) 30%, var(--deep-500) 70%, var(--deep-300) 100%);
    --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(240,249,255,0.98) 100%);
    --gradient-water: linear-gradient(180deg, var(--ocean-100) 0%, var(--deep-50) 50%, var(--ocean-50) 100%);
    --gradient-depth: radial-gradient(ellipse at center, var(--deep-200) 0%, var(--ocean-300) 40%, var(--ocean-600) 100%);
    --gradient-surface: linear-gradient(45deg, var(--ocean-50) 0%, var(--deep-100) 25%, var(--ocean-100) 50%, var(--deep-50) 75%, var(--ocean-50) 100%);
    
    /* Water Animation Gradients */
    --water-wave-1: linear-gradient(90deg, transparent 0%, var(--ocean-100) 50%, transparent 100%);
    --water-wave-2: linear-gradient(90deg, transparent 0%, var(--deep-100) 50%, transparent 100%);
    --water-ripple: radial-gradient(circle, var(--ocean-200) 0%, transparent 70%);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --radius-full: 9999px;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Typography */
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-heading: var(--font-body);
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;

    /* Animations */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
}

/* Reset & Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    height: auto !important;
    overflow-y: auto !important;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--neutral-900);
    background: var(--gradient-water);
    background-attachment: fixed;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    position: relative;
    height: auto !important;
    min-height: 100vh !important;
    max-height: none !important;
}

/* Beautiful Water Background */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        /* Floating bubbles effect */
        radial-gradient(circle at 20% 80%, rgba(14, 165, 233, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(34, 211, 238, 0.06) 0%, transparent 40%),
        /* Water waves pattern */
        linear-gradient(90deg, transparent 0%, rgba(14, 165, 233, 0.03) 50%, transparent 100%),
        /* Base water gradient */
        var(--gradient-water);
    background-size: 
        200px 200px,
        300px 300px, 
        150px 150px,
        100px 50px,
        100% 100%;
    background-position:
        0% 0%,
        100% 100%,
        50% 50%,
        0% 100%,
        0% 0%;
    animation: waterFlow 20s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

/* Water flow animation */
@keyframes waterFlow {
    0%, 100% {
        background-position:
            0% 0%,
            100% 100%,
            50% 50%,
            0% 100%,
            0% 0%;
    }
    33% {
        background-position:
            10% 20%,
            90% 80%,
            60% 40%,
            -10% 90%,
            0% 0%;
    }
    66% {
        background-position:
            -5% 10%,
            110% 90%,
            40% 60%,
            10% 110%,
            0% 0%;
    }
}

/* Subtle fish swimming animation */
body::after {
    content: '🐟';
    position: absolute;
    font-size: 1.5rem;
    color: var(--ocean-300);
    opacity: 0.3;
    animation: fishSwim 25s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes fishSwim {
    0% {
        left: -50px;
        top: 20%;
        transform: rotate(0deg);
    }
    25% {
        left: 25%;
        top: 60%;
        transform: rotate(-10deg);
    }
    50% {
        left: 75%;
        top: 30%;
        transform: rotate(10deg);
    }
    75% {
        left: 50%;
        top: 70%;
        transform: rotate(-5deg);
    }
    100% {
        left: calc(100% + 50px);
        top: 40%;
        transform: rotate(0deg);
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--neutral-900);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--space-4);
    color: var(--neutral-700);
}

a {
    color: var(--primary-600);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-700);
    text-decoration: underline;
}

/* Layout Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.container-sm {
    max-width: 768px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.container-lg {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* Grid System */
.grid {
    display: grid;
    gap: var(--space-6);
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

.grid-auto-fit {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Flexbox Utilities */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

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

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* Button Components */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-normal);
    text-align: center;
    outline: none;
}

.btn:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    color: white;
}

.btn-secondary {
    background: white;
    color: var(--primary-600);
    border: 2px solid var(--neutral-200);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    border-color: var(--primary-300);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
    color: var(--primary-700);
}

.btn-ghost {
    background: transparent;
    color: var(--neutral-600);
    border: 1px solid transparent;
}

.btn-ghost:hover {
    background: var(--neutral-100);
    color: var(--neutral-900);
    text-decoration: none;
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: 0.75rem;
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: 1rem;
}

.btn-xl {
    padding: var(--space-5) var(--space-10);
    font-size: 1.125rem;
}

/* Ocean-Themed Card Components */
.card {
    background: var(--gradient-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--ocean-200);
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: var(--transition-normal);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--ocean-300);
}

.card:hover::before {
    height: 4px;
    background: linear-gradient(90deg, var(--ocean-500), var(--deep-400), var(--coral-500));
}

.card-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--neutral-200);
}

.card-body {
    padding: var(--space-6);
}

.card-footer {
    padding: var(--space-6);
    border-top: 1px solid var(--neutral-200);
    background: var(--neutral-50);
}

/* Form Components */
.form-group {
    margin-bottom: var(--space-4);
}

.form-label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 600;
    color: var(--neutral-700);
    font-size: 0.875rem;
}

.form-input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition-fast);
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input:disabled {
    background: var(--neutral-100);
    color: var(--neutral-500);
    cursor: not-allowed;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Ocean Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--ocean-200);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-md);
    position: relative;
}

.navbar::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    animation: waveFlow 3s ease-in-out infinite;
}

@keyframes waveFlow {
    0%, 100% {
        transform: translateX(0%);
        opacity: 0.8;
    }
    50% {
        transform: translateX(20px);
        opacity: 1;
    }
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    padding: 0 var(--space-6);
    max-width: 1200px;
    margin: 0 auto;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--neutral-900);
    text-decoration: none;
}

.navbar-brand:hover {
    text-decoration: none;
    color: var(--primary-600);
}

.navbar-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.nav-link {
    color: var(--neutral-600);
    font-weight: 500;
    text-decoration: none;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-600);
    background: var(--primary-50);
    text-decoration: none;
}

/* Ocean Hero Section */
.hero {
    background: var(--gradient-hero);
    color: white;
    padding: var(--space-20) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        /* Ocean depth effect */
        radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(34, 211, 238, 0.1) 0%, transparent 60%),
        /* Water surface ripples */
        repeating-linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.02) 50%, transparent 100%),
        /* Marine life silhouettes */
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M20,50 Q30,40 40,50 Q50,60 60,50 Q70,40 80,50" stroke="rgba(255,255,255,0.1)" stroke-width="2" fill="none"/><circle cx="30" cy="30" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="70" r="1.5" fill="rgba(255,255,255,0.08)"/></svg>');
    background-size: 
        400px 400px,
        300px 300px,
        50px 20px,
        200px 200px;
    background-position:
        20% 30%,
        80% 70%,
        0% 0%,
        50% 50%;
    animation: oceanFlow 15s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes oceanFlow {
    0%, 100% {
        background-position:
            20% 30%,
            80% 70%,
            0% 0%,
            50% 50%;
    }
    50% {
        background-position:
            30% 40%,
            70% 60%,
            100% 0%,
            60% 40%;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: var(--space-6);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--space-10);
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Dashboard Components */
.dashboard-header {
    background: white;
    border-bottom: 1px solid var(--neutral-200);
    padding: var(--space-6) 0;
    margin-bottom: var(--space-8);
}

.dashboard-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--neutral-900);
    margin-bottom: var(--space-2);
}

.dashboard-subtitle {
    color: var(--neutral-600);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

/* Widget Components */
.widget {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-200);
    overflow: hidden;
    transition: var(--transition-normal);
}

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

.widget-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--neutral-200);
    background: var(--neutral-50);
}

.widget-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--neutral-900);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.widget-body {
    padding: var(--space-6);
}

/* Stat Components */
.stat-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-200);
    transition: var(--transition-normal);
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-600);
    display: block;
    margin-bottom: var(--space-2);
}

.stat-label {
    color: var(--neutral-600);
    font-weight: 500;
    font-size: 0.875rem;
}

/* Badge Components */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge-primary {
    background: var(--primary-100);
    color: var(--primary-800);
}

.badge-secondary {
    background: var(--secondary-100);
    color: var(--secondary-800);
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-error {
    background: #fecaca;
    color: #991b1b;
}

/* Modal Components */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}

.modal {
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--neutral-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--neutral-900);
}

.modal-close {
    background: none;
    border: none;
    color: var(--neutral-500);
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: var(--neutral-100);
    color: var(--neutral-700);
}

.modal-body {
    padding: var(--space-6);
}

.modal-footer {
    padding: var(--space-6);
    border-top: 1px solid var(--neutral-200);
    display: flex;
    gap: var(--space-3);
    justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-4);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .navbar-nav {
        display: none;
    }
    
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
    
    .grid-auto-fit {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero {
        padding: var(--space-16) 0;
    }
    
    .container {
        padding: 0 var(--space-3);
    }
    
    .modal {
        margin: var(--space-4);
        max-width: calc(100% - 2rem);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states for keyboard navigation */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --neutral-200: #000;
        --neutral-600: #000;
        --neutral-700: #000;
    }
}

/* Print styles */
@media print {
    .navbar,
    .btn,
    .modal-overlay {
        display: none !important;
    }
    
    body {
        color: black;
        background: white;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #000;
    }
}

/* Ocean-Themed Animation Utilities */
.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.5s ease-out;
}

.animate-float {
    animation: oceanFloat 3s ease-in-out infinite;
}

.animate-ripple {
    animation: rippleEffect 2s ease-out infinite;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes oceanFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-6px);
    }
}

@keyframes rippleEffect {
    0% {
        box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.4);
        transform: scale(1);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(14, 165, 233, 0);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(14, 165, 233, 0);
        transform: scale(1);
    }
}

/* Fish/Marine Life Elements */
.fish-icon {
    display: inline-block;
    animation: swimGently 4s ease-in-out infinite;
}

@keyframes swimGently {
    0%, 100% {
        transform: translateX(0px) rotate(0deg);
    }
    25% {
        transform: translateX(2px) rotate(1deg);
    }
    75% {
        transform: translateX(-2px) rotate(-1deg);
    }
}

/* Water Effect Classes */
.water-surface {
    background: var(--gradient-surface);
    position: relative;
    overflow: hidden;
}

.water-surface::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--water-wave-1);
    animation: waveMovement 3s linear infinite;
}

.water-surface::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--water-wave-2);
    animation: waveMovement 4s linear infinite reverse;
}

@keyframes waveMovement {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Bubble Effects */
.bubble-container {
    position: relative;
    overflow: hidden;
}

.bubble-container::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, var(--ocean-200) 30%, transparent 70%);
    border-radius: 50%;
    animation: bubbleRise 6s linear infinite;
    left: 20%;
}

.bubble-container::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, var(--deep-200) 30%, transparent 70%);
    border-radius: 50%;
    animation: bubbleRise 8s linear infinite;
    left: 70%;
    animation-delay: -3s;
}

@keyframes bubbleRise {
    0% {
        bottom: -10px;
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        bottom: 100%;
        opacity: 0;
    }
}

/* Utility classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

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

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

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

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.hidden {
    display: none;
}

.block {
    display: block;
}

.inline {
    display: inline;
}

.inline-block {
    display: inline-block;
}

/* Color utilities */
.text-primary {
    color: var(--primary-600);
}

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

.text-neutral {
    color: var(--neutral-600);
}

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

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

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

.bg-primary {
    background-color: var(--primary-600);
}

.bg-secondary {
    background-color: var(--secondary-600);
}

.bg-neutral {
    background-color: var(--neutral-100);
}

.bg-success {
    background-color: var(--success);
}

.bg-warning {
    background-color: var(--warning);
}

.bg-error {
    background-color: var(--error);
}
/* === GLOBAL SCROLL FIX === */
/* Force enable scrolling on all pages */
html, body {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: auto !important;
    max-height: none !important;
    min-height: 100vh !important;
}

/* Remove any JavaScript scroll blocking */
body, html {
    touch-action: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

/* Force container elements to be scrollable */
.container, main, .main-container, .content, #content {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
}

/* Override any fixed positioning that blocks scroll */
body::before, body::after {
    position: absolute !important;
    pointer-events: none !important;
}

/* Ensure scroll works on mobile */
@media (max-width: 768px) {
    html, body {
        overflow-y: auto !important;
        height: auto !important;
        position: relative !important;
    }
}
