﻿/*#if (SampleContent)*/
/* ============================================================
   FISHING LURE INVENTORY — Design System
   Palette:
     --navy    #0d1b2a   deep water background
     --water   #1b4965   mid-water blue
     --teal    #1ca3a3   accent / interactive
     --green   #2dc653   success / add
     --amber   #f4a01c   badge / highlight
     --surface #f0f4f8   light page background
     --card    #ffffff
     --text    #1a2535
     --muted   #6b7c93
   ============================================================ */

:root {
    --navy:   #0d1b2a;
    --water:  #1b4965;
    --teal:   #1ca3a3;
    --green:  #2dc653;
    --amber:  #f4a01c;
    --red:    #e03e3e;
    --surface:#eef2f7;
    --card:   #ffffff;
    --text:   #1a2535;
    --muted:  #6b7c93;
    --border: #d0dae6;
    --radius: 14px;
    --shadow: 0 4px 18px rgba(13,27,42,0.12);
    --shadow-sm: 0 2px 8px rgba(13,27,42,0.08);
}

/* ── Base ─────────────────────────────────────────────────── */
html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--surface);
    color: var(--text);
    margin: 0;
    padding: 0;
}

a, .btn-link { color: var(--teal); }

h1:focus { outline: none; }

.valid.modified:not([type=checkbox]) { outline: 1px solid var(--green); }
.invalid { outline: 1px solid var(--red); }
.validation-message { color: var(--red); }

#blazor-error-ui {
    background: #fff3cd;
    bottom: 0; box-shadow: 0 -1px 2px rgba(0,0,0,0.2);
    display: none; left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed; width: 100%; z-index: 1000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.75rem; top: 0.5rem; }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem; color: white;
}
.blazor-error-boundary::after { content: "An error has occurred." }

.status-bar-safe-area { display: none; }
@supports (-webkit-touch-callout: none) {
    .status-bar-safe-area {
        display: flex; position: sticky; top: 0;
        height: env(safe-area-inset-top);
        background-color: var(--navy); width: 100%; z-index: 1;
    }
}

/* ── App shell ────────────────────────────────────────────── */
.app-container {
    min-height: 100vh;
    background-color: var(--surface);
}

/* ── Shared header bar ────────────────────────────────────── */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.25rem;
    background: linear-gradient(135deg, var(--navy) 0%, var(--water) 100%);
    color: white;
}

.header h1 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* ── Home hero banner ─────────────────────────────────────── */
.home-hero {
    background: linear-gradient(160deg, var(--navy) 0%, var(--water) 55%, #1d8fa0 100%);
    padding: 3rem 1.5rem 2.5rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.home-hero::before {
    content: '';
    position: absolute;
    bottom: -20px; left: -10px;
    width: 120px; height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 60'%3E%3Cellipse cx='60' cy='30' rx='58' ry='20' fill='rgba(28,163,163,0.18)'/%3E%3C/svg%3E") no-repeat center/contain;
    pointer-events: none;
}

.home-hero::after {
    content: '🎣';
    position: absolute;
    right: 1.5rem; top: 1.2rem;
    font-size: 3.5rem;
    opacity: 0.18;
    transform: rotate(-20deg);
    pointer-events: none;
}

.hero-settings-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 10;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    width: 2.4rem;
    height: 2.4rem;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    backdrop-filter: blur(4px);
}

.hero-settings-btn:active {
    background: rgba(255,255,255,0.3);
}

.home-hero-title {
    font-size: 1.9rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0 0 0.2rem;
    line-height: 1.1;
    padding-right: 2.5rem; /* leave room for gear icon */
}

.home-hero-subtitle {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.65);
    margin: 0;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ── Home nav strip (below hero) ─────────────────────────── */
.home-nav-strip {
    display: flex;
    gap: 0.5rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0.6rem 1rem;
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 2px 8px rgba(13,27,42,0.07);
}

.home-nav-btn {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.6rem 0.25rem 0.55rem;
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    color: var(--water);
    font-weight: 700;
    font-size: 0.62rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
    white-space: normal;
    word-break: break-word;
    text-align: center;
    line-height: 1.2;
}
.home-nav-btn:active {
    transform: scale(0.96);
    box-shadow: none;
    border-color: var(--teal);
    color: var(--teal);
}
.home-nav-icon { font-size: 1.4rem; }

/* ── FAB ─────────────────────────────────────────────────── */
.home-fab {
    position: fixed;
    bottom: 1.75rem;
    right: 1.25rem;
    z-index: 100;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: none;
    background: var(--green);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(45,198,83,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: transform 0.18s, box-shadow 0.18s;
}
.home-fab:active {
    transform: scale(0.9);
    box-shadow: 0 3px 10px rgba(45,198,83,0.35);
}

/* btn-add kept for other pages */
.btn-add {
    width: 52px; height: 52px;
    border-radius: 50%;
    border: none;
    background: var(--green);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(45,198,83,0.45);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
}
.btn-add:active { transform: scale(0.92); box-shadow: 0 2px 6px rgba(45,198,83,0.3); }

/* ── Section label ────────────────────────────────────────── */
.section-label {
    padding: 1.2rem 1rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ── Lure grid ────────────────────────────────────────────── */
.inventory-page {
    padding-bottom: 5rem; /* space for FAB */
}

/* ── Home search ─────────────────────────────────────────── */
.home-search-wrap {
    display: flex;
    align-items: center;
    margin: 1rem 1rem 0;
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: 28px;
    padding: 0 0.75rem;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.15s;
}
.home-search-wrap:focus-within {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(28,163,163,0.13);
}
.home-search-icon {
    font-size: 1rem;
    flex-shrink: 0;
    opacity: 0.5;
    margin-right: 0.4rem;
}
.home-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 0.95rem;
    padding: 0.6rem 0;
}
.home-search-clear {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0 0.2rem;
    flex-shrink: 0;
}

/* ── Home control strip (filters + sort + view) ───────────── */
.home-ctrl-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem 0.4rem;
}

/* ── Ctrl chip ────────────────────────────────────────────── */
.ctrl-chip {
    display: inline-flex;
    align-items: center;
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: 20px;
    padding: 0 0.1rem 0 0.6rem;
    height: 34px;
    flex-shrink: 0;
    transition: border-color 0.15s;
}
.ctrl-chip.ctrl-chip-grow {
    flex: 1;
    min-width: 0;
}
.ctrl-chip.chip-active {
    border-color: var(--teal);
    background: #e6f7f7;
}
.chip-prefix {
    font-size: 0.8rem;
    color: var(--teal);
    margin-right: 0.15rem;
    flex-shrink: 0;
}
.chip-select {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}
.chip-chevron {
    font-size: 0.85rem;
    color: var(--teal);
    padding: 0 0.45rem 0 0.1rem;
    pointer-events: none;
    flex-shrink: 0;
}
.ctrl-clear-btn {
    background: var(--red);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    font-size: 0.8rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ctrl-divider {
    width: 1px;
    height: 20px;
    background: var(--border);
    flex-shrink: 0;
    margin: 0 0.1rem;
}
.ctrl-dir-btn {
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: 20px;
    color: var(--teal);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    padding: 0.2rem 0.55rem;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
    height: 34px;
}
.ctrl-dir-btn:active { opacity: 0.7; }
.ctrl-views {
    display: flex;
    gap: 0.2rem;
    flex-shrink: 0;
}
.ctrl-view-btn {
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    color: var(--muted);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.ctrl-view-btn.active {
    border-color: var(--teal);
    color: var(--teal);
    background: #e6f7f7;
}

/* ── Section label with count badge ──────────────────────── */
.home-section-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem 0.4rem;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}
.home-count-badge {
    background: var(--teal);
    color: white;
    border-radius: 20px;
    padding: 0.05rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
}

/* ── Legacy search/filter kept for other pages ────────────── */
.search-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1rem 0.4rem;
}
.search-input {
    flex: 1;
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: 20px;
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.35rem 0.85rem;
    outline: none;
    transition: border-color 0.15s;
}
.search-input:focus { border-color: var(--teal); }
.filter-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1rem 0.4rem;
    flex-wrap: wrap;
}
.filter-select {
    flex: 1;
    min-width: 0;
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: 20px;
    color: var(--text);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.28rem 0.75rem;
    appearance: none;
    -webkit-appearance: none;
}
.filter-select:focus { outline: none; border-color: var(--teal); }
.filter-clear-btn {
    background: var(--red);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1;
    padding: 0.28rem 0.52rem;
    flex-shrink: 0;
}
.sort-view-bar { display: none; }
.view-switcher { display: none; }
.view-switcher-btn { display: none; }

/* ── Shared grid base ─────────────────────────────────────── */
.lure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 0.9rem;
    padding: 0.5rem 1rem 1rem;
}

/* ── Card variants ────────────────────────────────────────── */

/* large */
.lure-grid.view-large {
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 0.9rem;
}

.lure-grid.view-large .lure-image { height: 120px; }
.lure-grid.view-large .lure-card-body { padding: 0.65rem 0.75rem 0.75rem; }
.lure-grid.view-large .lure-amount { font-size: 0.8rem; }
.lure-grid.view-large .lure-name { font-size: 0.9rem; }
.lure-grid.view-large .no-image { font-size: 3rem; }

/* tiny */
.lure-grid.view-tiny {
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 0.35rem;
    padding: 0.3rem 0.6rem 0.6rem;
}

.lure-grid.view-tiny .lure-image { height: 56px; }
.lure-grid.view-tiny .lure-card-body { padding: 0.25rem 0.35rem 0.3rem; }
.lure-grid.view-tiny .lure-amount { font-size: 0.62rem; margin-bottom: 0.1rem; }
.lure-grid.view-tiny .lure-name { font-size: 0.65rem; }
.lure-grid.view-tiny .no-image { font-size: 1.3rem; }

/* ── List view (no pictures) ──────────────────────────────── */
.lure-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.5rem 1rem 1rem;
}

.lure-list-row {
    background: var(--card);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.85rem;
    transition: transform 0.15s;
}

.lure-list-row:active { transform: scale(0.98); }

.lure-list-color {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--border);
    flex-shrink: 0;
    background-color: #ccc;
}

.lure-list-name {
    flex: 1;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lure-list-color-label {
    font-size: 0.78rem;
    color: var(--muted);
    white-space: nowrap;
}

.lure-list-amount {
    background: var(--amber);
    color: white;
    border-radius: 20px;
    padding: 0.18rem 0.6rem;
    font-weight: 800;
    font-size: 0.82rem;
    flex-shrink: 0;
}

.lure-list-catches {
    font-size: 0.8rem;
    color: var(--muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.lure-list-size {
    font-size: 0.8rem;
    color: var(--muted);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Shared card ──────────────────────────────────────────── */
.lure-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.lure-card:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(13,27,42,0.08);
}

.lure-image {
    width: 100%;
    height: 120px;
    overflow: hidden;
    background: linear-gradient(135deg, #dde8f0 0%, #c8dce8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lure-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.lure-card:active .lure-image img { transform: scale(1.04); }

.no-image { font-size: 3rem; opacity: 0.45; }

/* ── Catches list images (scale and crop instead of stretching/zooming) ───────────────── */
.catch-image-full,
.catch-image {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.catch-image-full {
    width: 180px;
    height: 120px;
}
.catch-image {
    /* smaller thumbnail variants */
    width: 96px;
    height: 72px;
}
.catch-image-full img,
.catch-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lure-card-body {
    padding: 0.65rem 0.75rem 0.75rem;
    width: 100%;
    box-sizing: border-box;
}

.lure-amount {
    display: inline-block;
    font-weight: 600;
    font-size: 0.72rem;
    color: var(--muted);
    line-height: 1;
    white-space: nowrap;
    margin-bottom: 0.3rem;
}

.lure-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lure-card-catches {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 0.15rem;
}

.lure-card-stats {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 0.25rem;
    margin-bottom: 0.3rem;
}

.lure-card-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.05rem;
    min-width: 0;
}

.lure-card-stat-icon {
    font-size: 0.85rem;
    line-height: 1;
}
.lure-size-icon {
    width: 0.9rem;
    height: 0.9rem;
    fill: none;
    stroke: var(--muted);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lure-card-stat-val {
    font-size: 0.72rem;
    color: var(--muted);
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.lure-card-stats .lure-amount {
    margin-bottom: 0;
    font-size: 0.72rem;
}

.lure-card-stats .lure-card-catches {
    margin-top: 0;
}

.lure-card-size {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 0;
}

/* ── Empty state ──────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 4rem 1.5rem;
    color: var(--muted);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p { margin: 0.25rem 0; }

/* ── Back button (used in all sub-page headers) ───────────── */
.btn-back {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: white;
    padding: 0.45rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.2s;
}
.btn-back:active { background: rgba(255,255,255,0.28); }

/* ── Page wrappers ────────────────────────────────────────── */
.edit-page, .details-page, .catches-page, .statistics-page {
    max-width: 680px;
    margin: 0 auto;
    padding-bottom: 2rem;
}

/* ── Forms ────────────────────────────────────────────────── */
.form-container { padding: 1rem; }

.form-group { margin-bottom: 1.25rem; }

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    color: var(--text);
    background: var(--card);
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(28,163,163,0.15);
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* ── Button palette ───────────────────────────────────────── */
.btn-save, .btn-cancel, .btn-edit, .btn-delete, .btn-add-catch {
    padding: 0.85rem 1.25rem;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    flex: 1;
    letter-spacing: 0.02em;
}
.btn-save, .btn-cancel, .btn-edit, .btn-delete, .btn-add-catch {
    active: opacity: 0.85;
}
.btn-save:active, .btn-cancel:active, .btn-edit:active,
.btn-delete:active, .btn-add-catch:active { transform: scale(0.97); }

.btn-save          { background: var(--green);  color: white; }
.btn-save:disabled { background: var(--border); color: var(--muted); cursor: not-allowed; }
.btn-cancel        { background: var(--surface); color: var(--muted); border: 1.5px solid var(--border); }
.btn-edit          { background: var(--teal);   color: white; }
.btn-delete        { background: var(--red);    color: white; }
.btn-add-catch     { background: var(--amber);  color: white; }

.btn-location {
    margin-top: 0.5rem;
    padding: 0.55rem 1rem;
    background: var(--water);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    transition: opacity 0.2s;
}
.btn-location:active { opacity: 0.8; }

.btn-load-more {
    display: block;
    width: 100%;
    padding: 0.8rem;
    margin-top: 0.75rem;
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--teal);
    cursor: pointer;
    text-align: center;
    transition: background 0.2s;
}
.btn-load-more:active { background: var(--surface); }

/* ── Image Picker ─────────────────────────────────────────── */
.image-picker { margin-bottom: 1.25rem; }

.image-picker > label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.image-picker-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.btn-camera, .btn-gallery {
    padding: 0.8rem 0.75rem;
    border: 1.5px solid var(--teal);
    border-radius: 10px;
    background: var(--card);
    color: var(--teal);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.btn-camera:active, .btn-gallery:active {
    background: var(--teal); color: white; transform: scale(0.97);
}

.image-preview {
    margin-top: 0.75rem;
    position: relative;
    max-width: 200px;
}

.image-preview img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    display: block;
}

.btn-remove-image {
    margin-top: 0.5rem;
    padding: 0.45rem 1rem;
    background: var(--red);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: opacity 0.2s;
    display: block;
}
.btn-remove-image:active { opacity: 0.8; }

/* ── Lure details page ────────────────────────────────────── */
.details-container { padding: 1rem; }

.lure-photo-large {
    width: 100%;
    max-width: 240px;
    height: 140px;
    margin: 0 auto 1rem;
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(135deg, #c8dce8, #a5c4d4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    box-shadow: var(--shadow);
    border: none;
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

/* ── Lightbox ─────────────────────────────────────────────── */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
    box-sizing: border-box;
    overflow: hidden;
}

.lightbox-img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
    will-change: transform;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.8rem;
    line-height: 1;
    width: 2.6rem;
    height: 2.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
    z-index: 2001;
    padding: 0;
}
.lightbox-close:active { background: rgba(255,255,255,0.35); }

.lure-photo-large img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.image-hint {
    position: absolute;
    bottom: 8px; right: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    background: rgba(13,27,42,0.45);
    padding: 3px 8px;
    border-radius: 20px;
    pointer-events: none;
    letter-spacing: 0.04em;
}

.no-image-large { font-size: 5rem; opacity: 0.35; }

.details-info {
    background: var(--card);
    padding: 1.25rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
}

.details-info h2 {
    margin: 0 0 1rem;
    color: var(--navy);
    font-size: 1.5rem;
    font-weight: 900;
}

.info-row {
    display: flex;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--surface);
}
.info-row:last-child { border-bottom: none; }

.info-row .label {
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
    min-width: 135px;
}

.info-row .value { color: var(--text); flex: 1; font-weight: 500; }

.store-link { color: var(--teal); text-decoration: none; font-weight: 600; }
.store-link:hover { text-decoration: underline; }

.action-buttons {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.action-buttons button { flex: 1; min-width: 0; }

/* ── Add catch form ───────────────────────────────────────── */
.add-catch-form {
    background: var(--card);
    padding: 1.25rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--amber);
}

.add-catch-form h3 {
    margin: 0 0 1rem;
    color: var(--navy);
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Catch log section ────────────────────────────────────── */
.catch-log-section {
    background: var(--card);
    padding: 1.25rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.catch-log-section h3 {
    margin: 0 0 1rem;
    color: var(--navy);
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.no-catches {
    text-align: center;
    color: var(--muted);
    padding: 2rem;
    font-size: 0.95rem;
}

.catch-list { display: flex; flex-direction: column; gap: 0.75rem; }

.catch-card {
    display: flex;
    gap: 0.9rem;
    padding: 0.9rem;
    background: var(--surface);
    border-radius: 10px;
    border-left: 4px solid var(--teal);
}

.catch-image {
    width: 90px; height: 90px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--border);
}
.catch-image img { width: 100%; height: 100%; object-fit: cover; }

.catch-details { flex: 1; min-width: 0; }

.catch-species {
    font-weight: 800;
    font-size: 1rem;
    color: var(--navy);
    margin-bottom: 0.3rem;
}

.catch-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}

.catch-stats span {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.15rem 0.5rem;
    font-size: 0.82rem;
    color: var(--text);
    font-weight: 600;
}
.measurement-icon {
    width: 0.9rem;
    height: 0.9rem;
    margin-right: 0.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: -0.12rem;
}

.catch-location {
    color: var(--muted);
    font-size: 0.82rem;
    margin-bottom: 0.25rem;
    display: flex; align-items: center; gap: 0.4rem;
    flex-wrap: wrap;
}

.btn-open-map {
    background: var(--water);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.18rem 0.55rem;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
    white-space: nowrap;
}
.map-icon {
    width: 0.9rem;
    height: 0.9rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: -0.12rem;
}
.btn-open-map:active { opacity: 0.75; }

/* Clickable location text link */
.btn-location-link {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: var(--water);
    font-size: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline dotted;
    text-align: left;
}
.btn-location-link:active { opacity: 0.7; }

/* ── Location Detail Page ────────────────────────────────── */
.location-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 1.5rem 1rem 1rem;
    text-align: center;
}
.location-hero-icon { font-size: 2.5rem; line-height: 1; }
.location-hero-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text);
    word-break: break-word;
}
.location-hero-map { margin-top: 0.3rem; }

.location-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    padding: 0 1rem 1rem;
}
.location-stat-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--card-bg);
    border-radius: 10px;
    padding: 0.5rem 0.9rem;
    min-width: 80px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.location-stat-pill-label {
    font-size: 0.68rem;
    color: var(--muted);
    font-weight: 600;
    text-align: center;
}
.location-stat-pill-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
}

.location-catches-title {
    padding: 0 1rem 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.location-catch-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 1rem 2rem;
}
.location-catch-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--card-bg);
    border: none;
    border-radius: 12px;
    padding: 0.75rem;
    cursor: pointer;
    text-align: left;
    width: 100%;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    transition: opacity 0.15s;
}
.location-catch-row:active { opacity: 0.75; }

.location-catch-thumb {
    width: 54px;
    height: 54px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}
.location-catch-thumb img { width: 100%; height: 100%; object-fit: cover; }

.location-catch-info {
    flex: 1;
    min-width: 0;
}
.location-catch-species {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}
.location-catch-meta {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 0.15rem;
}
.location-catch-lure {
    font-size: 0.72rem;
    color: var(--muted);
    margin-top: 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 500;
}

/* ── Delete modal ─────────────────────────────────────────── */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(13,27,42,0.55);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(2px);
}

.modal-content {
    background: var(--card);
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    max-width: 380px; width: 90%;
    box-shadow: 0 8px 40px rgba(13,27,42,0.25);
}

.modal-content h3 {
    margin: 0 0 0.75rem;
    color: var(--red);
    font-size: 1.2rem;
    font-weight: 800;
}

.modal-content p { color: var(--muted); margin: 0 0 1.5rem; }

.modal-actions { display: flex; gap: 0.75rem; }

/* ── Statistics page ──────────────────────────────────────── */
.stats-container { padding: 1rem; }

.stats-overview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--card);
    padding: 1.25rem 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    border-bottom: 3px solid var(--teal);
}

.stat-value {
    font-size: 1.9rem;
    font-weight: 900;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 0.35rem;
}

.stat-label {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.stats-section {
    background: var(--card);
    padding: 1.25rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
}

.stats-section h2 {
    margin: 0 0 1rem;
    color: var(--navy);
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.species-stats { display: flex; flex-direction: column; gap: 0.75rem; }

.species-stat-row { display: flex; align-items: center; gap: 0.75rem; }

.species-name {
    min-width: 90px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text);
}

.species-bar-container {
    flex: 1; height: 10px;
    background: var(--surface);
    border-radius: 10px; overflow: hidden;
}

.species-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--teal), var(--water));
    border-radius: 10px;
    transition: width 0.6s ease;
}

.species-count {
    min-width: 70px;
    text-align: right;
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--muted);
}

.top-catches {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
    align-items: start;
}

.top-catch-col {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.top-catch-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    padding: 0;
    cursor: pointer;
    width: 100%;
}

.top-catch-card:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(13,27,42,0.08);
}

.top-catch-label {
    width: 100%;
    background: var(--amber);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.5rem;
    box-sizing: border-box;
}

/* Lure link shown below each top-catch card */
.top-catch-lure-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.55rem 0.75rem;
    background: var(--surface);
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    text-align: left;
    font-size: 0.82rem;
    color: var(--text);
    transition: background 0.15s;
}
.top-catch-lure-btn:active { background: var(--border); }
.top-catch-lure-icon { font-size: 1rem; flex-shrink: 0; }
.top-catch-lure-text { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* arrow used in lure links */
.lure-nav-arrow { font-size: 1.2rem; color: var(--muted); flex-shrink: 0; }

/* Lure link on catch detail page */
.catch-lure-info-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem;
    background: var(--surface);
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    text-align: left;
    margin-top: 1rem;
    transition: background 0.15s;
}
.catch-lure-info-link:active { background: var(--border); }

/* location row on catch detail */
.catch-location-row {
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}


.lure-stats { display: flex; flex-direction: column; gap: 0.6rem; }

.lure-stat-row {
    display: flex; align-items: center; gap: 0.9rem;
    padding: 0.75rem;
    background: var(--surface);
    border-radius: 10px;
    border-left: 3px solid var(--teal);
}

.lure-stat-image {
    width: 52px; height: 52px;
    border-radius: 8px; overflow: hidden;
    flex-shrink: 0;
    background: var(--border);
    display: flex; align-items: center; justify-content: center;
}
.lure-stat-image img { width: 100%; height: 100%; object-fit: cover; }
.no-image-small { font-size: 1.6rem; opacity: 0.5; }

.lure-stat-details { flex: 1; }
.lure-stat-name { font-weight: 700; color: var(--text); font-size: 0.92rem; margin-bottom: 0.15rem; }
.lure-stat-count { font-size: 0.82rem; font-weight: 600; color: var(--teal); }

.location-stats { display: flex; flex-direction: column; gap: 0.5rem; }

.location-stat-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.6rem 0.75rem;
    background: var(--surface);
    border-radius: 8px;
}

.location-name { color: var(--text); font-size: 0.9rem; font-weight: 500; }
.location-count { color: var(--teal); font-weight: 700; font-size: 0.88rem; }

/* ── All Catches page ─────────────────────────────────────── */
.catches-container { padding: 1rem; }

.catches-summary {
    background: var(--card);
    padding: 0.9rem 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--water);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.catch-list-full { display: flex; flex-direction: column; gap: 1rem; }

.catch-card-full {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.catch-header {
    background: linear-gradient(90deg, var(--navy), var(--water));
    padding: 0.7rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.catch-date-full {
    color: rgba(255,255,255,0.85);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.catch-content { padding: 1rem; }
.catch-content-clickable { cursor: pointer; }
.catch-content-clickable:active { background: var(--surface); }

.catch-image-full {
    width: 100%; max-height: 220px;
    overflow: hidden; border-radius: 8px;
    margin-bottom: 0.9rem;
}
.catch-image-full img { width: 100%; height: 100%; object-fit: cover; }
.catch-image-placeholder {
    background: linear-gradient(135deg, #dde8f0 0%, #c8dce8 100%);
    display: flex; align-items: center; justify-content: center;
}
.catch-placeholder-icon { font-size: 3rem; opacity: 0.45; }

.catch-info-full { display: flex; flex-direction: column; gap: 0.6rem; }

.catch-species-full {
    margin: 0;
    color: var(--navy);
    font-size: 1.3rem;
    font-weight: 900;
}

.catch-measurements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.5rem;
}

.measurement-item {
    display: flex; gap: 0.4rem;
    padding: 0.45rem 0.75rem;
    background: var(--surface);
    border-radius: 8px;
    align-items: center;
}

.measurement-label {
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

/* ── Catch card action buttons (LureDetails) ──────────────── */
.catch-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.6rem;
    flex-wrap: wrap;
}

.btn-catch-sm {
    padding: 0.4rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
}
.btn-catch-sm:active { transform: scale(0.96); opacity: 0.85; }

.btn-catch-sm-edit   { background: var(--teal); color: white; }
.btn-catch-sm-delete { background: var(--red);  color: white; }

/* ── Catch header action buttons (AllCatches) ─────────────── */
.catch-header-actions {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    flex-shrink: 0;
}

.btn-catch-header-edit,
.btn-catch-header-delete {
    padding: 0.28rem 0.75rem;
    border: none;
    border-radius: 7px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    white-space: nowrap;
}
.btn-catch-header-edit:active,
.btn-catch-header-delete:active { transform: scale(0.95); opacity: 0.85; }

.btn-catch-header-edit   { background: rgba(255,255,255,0.22); color: #fff; }
.btn-catch-header-delete { background: rgba(224,62,62,0.80);   color: #fff; }

/* ── Edit modal (AllCatches scrollable form) ──────────────── */
.modal-content-form {
    max-height: 88vh;
    overflow-y: auto;
    padding: 1.5rem;
}
.modal-content-form h3 { color: var(--water); }

/* ── Language selector (Settings) ────────────────────────── */
.language-selector {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.lang-btn {
    flex: 1;
    padding: 0.65rem 1rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: var(--card);
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.lang-btn.active {
    border-color: var(--teal);
    background: var(--teal);
    color: #fff;
}

.lang-btn:not(.active):hover {
    border-color: var(--teal);
}
.measurement-value { color: var(--text); font-weight: 600; font-size: 0.95rem; }

.catch-location-full {
    display: flex; align-items: center; gap: 0.5rem;
    color: var(--muted); font-size: 0.88rem;
    padding: 0.5rem 0.75rem;
    background: #e8f4fd;
    border-radius: 8px;
}

.catch-lure-info {
    display: flex; gap: 0.75rem;
    padding: 0.75rem;
    background: #fffbf0;
    border-radius: 8px;
    border: 1.5px solid #ffe08a;
    cursor: pointer;
    transition: transform 0.2s;
}
.catch-lure-info:active { transform: scale(0.98); }

.catch-lure-image {
    width: 46px; height: 46px;
    border-radius: 8px; overflow: hidden;
    flex-shrink: 0;
    background: var(--border);
    display: flex; align-items: center; justify-content: center;
}
.catch-lure-image img { width: 100%; height: 100%; object-fit: cover; }
.no-image-tiny { font-size: 1.4rem; opacity: 0.5; }

.catch-lure-details { flex: 1; }
.lure-label { font-size: 0.72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.15rem; }
.lure-name-small { font-weight: 700; color: var(--text); font-size: 0.9rem; margin-bottom: 0.1rem; }
.lure-type-small { font-size: 0.8rem; color: var(--muted); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 600px) {
    .lure-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 0.5rem; padding: 0.4rem 0.75rem 0.75rem; }
    .lure-grid .lure-image { height: 80px; }
    .lure-grid .no-image { font-size: 2rem; }
    .lure-grid .lure-card-body { padding: 0.4rem 0.5rem 0.5rem; }
    .lure-grid .lure-amount { font-size: 0.7rem; margin-bottom: 0.2rem; }
    .lure-grid .lure-name { font-size: 0.78rem; }
    .lure-grid.view-large { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.75rem; }
    .lure-grid.view-large .lure-image { height: 110px; }
    .stats-overview { grid-template-columns: repeat(2, 1fr); }
    .top-catches { grid-template-columns: 1fr; }
    .home-hero-title { font-size: 1.6rem; }
    .action-buttons { flex-direction: column; }
    .action-buttons button { min-width: 100%; }
}

/* ── Export / Import page ─────────────────────────────────── */
.ei-container {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ei-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.ei-card-icon {
    font-size: 2.2rem;
    line-height: 1;
}

.ei-card h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--navy);
}

.ei-description {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.ei-status {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ei-status-info  { background: #e8f4fd; color: var(--water); }
.ei-status-ok    { background: #e8fbe8; color: #1a7a2e; }
.ei-status-error { background: #fdecea; color: #b71c1c; }
.ei-status-warn  { background: #fff8e1; color: #7a4f00; }

.btn-ei {
    padding: 0.85rem 1.25rem;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    text-align: center;
    letter-spacing: 0.02em;
}
.btn-ei:active { transform: scale(0.97); }
.btn-ei:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-ei-primary   { background: var(--teal);  color: white; }
.btn-ei-secondary { background: var(--water); color: white; }
.btn-ei-danger-sm {
    padding: 0.45rem 0.9rem;
    background: var(--red);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 0.25rem;
    align-self: flex-start;
}

.ei-mode-selector {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.ei-radio {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.ei-radio.active {
    border-color: var(--teal);
    background: rgba(28,163,163,0.06);
}

.ei-radio input[type="radio"] {
    margin-top: 3px;
    accent-color: var(--teal);
    flex-shrink: 0;
}

.ei-radio-label {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.ei-radio-label strong {
    font-size: 0.92rem;
    color: var(--text);
}

.ei-radio-label small {
    font-size: 0.78rem;
    color: var(--muted);
}

