/* FishSmart Pro — Shared custom CSS */
/* Keep only custom/shared rules that Tailwind does not provide. */

html {
    scroll-padding-top: 80px !important;
}

:root {
    --touch-target-min: 44px;
}

body {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0c4a6e 100%);
    min-height: 100vh;
    overflow-x: hidden;
    margin: 0;
    font-family: 'Inter', 'Noto Sans', 'Noto Sans CJK SC', 'Microsoft YaHei UI', 'Microsoft YaHei', system-ui, sans-serif;
    color: #f3f4f6;
    -webkit-font-smoothing: antialiased;
}

button,
[role="button"] {
    min-height: var(--touch-target-min);
    min-width: var(--touch-target-min);
}

header a,
nav a,
a.nav-btn {
    min-height: var(--touch-target-min);
    min-width: var(--touch-target-min);
}

.glass-panel {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gradient-text {
    background: linear-gradient(90deg, #00f3ff, #00ffd9, #39ff14);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.scroll-hide::-webkit-scrollbar {
    display: none;
}

.scroll-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.stat-value {
    font-family: 'Orbitron', 'Rajdhani', 'Noto Sans', 'Noto Sans CJK SC', 'Microsoft YaHei UI', system-ui, sans-serif;
    letter-spacing: .05em;
}

.water-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: .15;
}

.validation-error {
    color: #f87171;
    font-size: .75rem;
    margin-top: .25rem;
    display: flex;
    align-items: center;
    gap: .25rem;
}

.input-error {
    border-color: #f87171 !important;
    box-shadow: 0 0 8px rgba(248, 113, 113, .3) !important;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 200px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%2300f3ff' fill-opacity='0.1' d='M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") repeat-x;
    animation: wave 10s linear infinite;
}

.wave:nth-child(2) {
    bottom: 10px;
    opacity: 0.5;
    animation: wave 7s linear infinite reverse;
}

.wave:nth-child(3) {
    bottom: 20px;
    opacity: 0.3;
    animation: wave 5s linear infinite;
}

@keyframes wave {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.toast {
    pointer-events: auto;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Inter', 'Noto Sans', 'Noto Sans CJK SC', 'Microsoft YaHei UI', system-ui, sans-serif;
    color: #f3f4f6;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.1);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: toastIn .3s ease, toastOut .3s ease 3.7s forwards;
    box-shadow: 0 4px 20px rgba(0,0,0,.3);
}

.toast-error { background: rgba(220,38,38,.85); border-color: rgba(248,113,113,.3); }
.toast-success { background: rgba(16,185,129,.85); border-color: rgba(52,211,153,.3); }
.toast-warning { background: rgba(202,138,4,.85); border-color: rgba(250,204,21,.3); }
.toast-info { background: rgba(6,182,212,.85); border-color: rgba(34,211,238,.3); }

@keyframes toastIn {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
    from { opacity: 1; }
    to { opacity: 0; transform: translateY(-10px); }
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(0, 243, 255, 0.6);
    border-radius: 50%;
    animation: particle-float 8s infinite;
}

@keyframes particle-float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) rotate(720deg);
        opacity: 0;
    }
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 243, 255, 0.4);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(4); opacity: 0; }
}

.custom-select:focus {
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

.setup-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.375rem;
    border: 1px solid rgba(34, 211, 238, 0.35);
    background-color: rgba(15, 23, 42, 0.85);
    accent-color: #22d3ee;
    box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.08), inset 0 0 10px rgba(15, 23, 42, 0.6);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.setup-checkbox:hover {
    border-color: rgba(34, 211, 238, 0.7);
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.18), inset 0 0 10px rgba(15, 23, 42, 0.6);
}

.setup-checkbox:focus-visible {
    outline: 2px solid rgba(34, 211, 238, 0.5);
    outline-offset: 2px;
    box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.18), 0 0 12px rgba(34, 211, 238, 0.25);
}

.btn-primary:active {
    transform: translateY(2px);
    box-shadow: 0 2px 8px rgba(0, 243, 255, 0.3);
}

.input-field:focus-visible {
    border-color: #00f3ff;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
    outline: 2px solid rgba(0, 243, 255, 0.5);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .wave, .particle {
        display: none !important;
    }
}

@media (max-width: 640px) {
    .grid-cols-4 {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .glass-panel {
        backdrop-filter: blur(16px);
    }
}

/* Logo styles */
.logo-glow {
    background: radial-gradient(circle at center, rgba(34,211,238,.88) 0%, rgba(0,243,255,.52) 34%, rgba(57,255,20,.24) 58%, rgba(59,130,246,.14) 76%, transparent 88%);
    transform: scale(1.34);
}
.logo-border {
    padding: 3px;
    background: linear-gradient(135deg, rgba(34,211,238,.58), rgba(0,243,255,.34) 48%, rgba(57,255,20,.24));
    border-color: rgba(125,249,255,.55);
    box-shadow: 0 0 0 1px rgba(103,232,249,.18), 0 0 20px rgba(34,211,238,.30), 0 0 42px rgba(0,243,255,.24), inset 0 1px 0 rgba(255,255,255,.18);
}
.logo-inner {
    background: radial-gradient(circle at 30% 30%, rgba(17,24,39,.82), rgba(15,23,42,.97));
    box-shadow: inset 0 0 18px rgba(0,243,255,.12);
}
.logo-img {
    width: 39px;
    height: 39px;
    padding: 2px;
    filter: drop-shadow(0 0 8px rgba(0,243,255,.22));
}
