/* Match Tracker — Custom CSS
 * Tailwind handles most styling. This file adds:
 *   1. CSS custom properties for the Bernardus orange theme
 *   2. Small utility classes not in Tailwind CDN config
 *   3. Component-level overrides
 */

/* ─── Theme variables ─────────────────────────────────────────────────── */
:root {
    --color-primary:      #F47920;
    --color-primary-dark: #d4641a;
    --color-primary-light:#fde8d5;
    --color-dark:         #2D2D2D;
    --color-bg:           #F7F7F7;
    --color-card:         #FFFFFF;
    --color-border:       #E5E7EB;
    --color-text:         #1F2937;
    --color-text-muted:   #6B7280;
    --color-success:      #10B981;
    --color-warning:      #F59E0B;
    --color-danger:       #EF4444;

    --radius-card: 0.75rem;
    --shadow-card: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md:   0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
}

/* ─── Base ────────────────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background-color: var(--color-bg);
}

/* ─── Primary color utilities ─────────────────────────────────────────── */
.bg-primary       { background-color: var(--color-primary); }
.bg-primary-dark  { background-color: var(--color-primary-dark); }
.bg-primary-light { background-color: var(--color-primary-light); }
.text-primary     { color: var(--color-primary); }
.border-primary   { border-color: var(--color-primary); }

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: background-color 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    text-decoration: none;
    min-height: 44px;
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: white;
    color: var(--color-primary);
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    border: 1px solid var(--color-primary);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    text-decoration: none;
    min-height: 44px;
}

.btn-secondary:hover {
    background-color: var(--color-primary-light);
}

.btn-danger {
    background-color: var(--color-danger);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
    transition: background-color 0.15s ease;
    min-height: 44px;
}

.btn-danger:hover {
    background-color: #dc2626;
}

/* ─── Card component ──────────────────────────────────────────────────── */
.card {
    background-color: var(--color-card);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 1rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ─── Form elements ───────────────────────────────────────────────────── */
.form-label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 0.375rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 0.875rem;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    font-size: 1rem;
    color: var(--color-text);
    background: white;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    appearance: none;
    min-height: 44px;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(244,121,32,0.2);
}

.form-select {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 0.875rem;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    font-size: 1rem;
    color: var(--color-text);
    background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 0.875rem center;
    appearance: none;
    cursor: pointer;
    min-height: 44px;
}

.form-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(244,121,32,0.2);
}

.form-group {
    margin-bottom: 1rem;
}

/* ─── Navigation bar ──────────────────────────────────────────────────── */
.nav-bar {
    background-color: var(--color-primary);
    color: white;
    padding: 0 1rem;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-md);
}

.nav-title {
    font-size: 1.125rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-btn {
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.15s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.nav-btn:hover {
    background: rgba(255,255,255,0.25);
}

/* ─── Bottom navigation ───────────────────────────────────────────────── */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--color-border);
    display: flex;
    height: 64px;
    z-index: 40;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    border: none;
    background: transparent;
    color: #666666;
    font-size: 0.75rem;
    font-weight: 500;
    transition: color 0.15s ease;
    text-decoration: none;
    min-height: 44px;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
    color: var(--color-primary);
}

.bottom-nav-item .nav-icon {
    font-size: 1.5rem;
    line-height: 1;
}

/* ─── Back button component ──────────────────────────────────────────── */
.back-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    min-height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 600;
    transition: opacity 0.15s ease;
}
.back-button:hover { opacity: 0.8; }
.back-button:active { opacity: 0.6; }
.back-button svg { flex-shrink: 0; }

/* ─── Main content area ───────────────────────────────────────────────── */
.main-content {
    padding: 1rem;
    padding-bottom: 84px; /* space for bottom nav */
    max-width: 768px;
    margin: 0 auto;
}

/* ─── Stat cards (dashboard) ──────────────────────────────────────────── */
.stat-card {
    background: white;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 1rem;
    text-align: center;
}

.stat-card-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.stat-card-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
    font-weight: 500;
}

/* ─── Match list items ────────────────────────────────────────────────── */
.match-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
    gap: 0.75rem;
    cursor: pointer;
    transition: background-color 0.1s ease;
    border-radius: 0.375rem;
    margin: 0 -0.25rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    min-height: 56px;
}

.match-item:last-child {
    border-bottom: none;
}

.match-item:hover {
    background-color: var(--color-bg);
}

.match-date-badge {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    border-radius: 0.375rem;
    padding: 0.375rem 0.5rem;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 44px;
    line-height: 1.2;
}

.match-score {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-left: auto;
    white-space: nowrap;
}

.result-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

.result-w { background: #d1fae5; color: #065f46; }
.result-d { background: #fef3c7; color: #92400e; }
.result-l { background: #fee2e2; color: #991b1b; }
.result-s { background: #e5e7eb; color: #374151; }

/* ─── Data table ──────────────────────────────────────────────────────── */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.data-table th {
    text-align: left;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-border);
    white-space: nowrap;
}

.data-table td {
    padding: 0.625rem 0.75rem;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background-color: var(--color-bg);
}

/* ─── Playing time bar ────────────────────────────────────────────────── */
.time-bar-wrap {
    height: 10px;
    background: #e5e7eb;
    border-radius: 5px;
    overflow: hidden;
    min-width: 60px;
}

.time-bar-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.4s ease;
}

/* Fairness color coding */
.time-bar-green  { background: var(--color-success); }
.time-bar-orange { background: var(--color-warning); }
.time-bar-red    { background: var(--color-danger); }

/* Legacy fallback */
.time-bar-fill:not(.time-bar-green):not(.time-bar-orange):not(.time-bar-red) {
    background: var(--color-primary);
}

/* Fairness label pill */
.fairness-pill {
    display: inline-flex;
    align-items: center;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 9999px;
    white-space: nowrap;
}
.fairness-pill-green  { background: #d1fae5; color: #065f46; }
.fairness-pill-orange { background: #fef3c7; color: #92400e; }
.fairness-pill-red    { background: #fee2e2; color: #991b1b; }

/* ─── Goal timeline ───────────────────────────────────────────────────── */
.goal-event {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.875rem;
}

.goal-event:last-child {
    border-bottom: none;
}

.goal-minute {
    width: 36px;
    text-align: right;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 600;
    flex-shrink: 0;
}

.goal-score-badge {
    background: var(--color-dark);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.goal-icon-own { color: var(--color-primary); }
.goal-icon-opp { color: #9ca3af; }

/* Delete goal button */
.goal-delete-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: #d1d5db;
    font-size: 0.875rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}
.goal-delete-btn:hover {
    background: #fee2e2;
    color: var(--color-danger);
}

/* ─── Player card (lineup) ────────────────────────────────────────────── */
.player-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
    min-height: 56px;
}

.player-row:last-child {
    border-bottom: none;
}

/* Tap-to-toggle player row — active/present state */
.player-row-tappable {
    cursor: pointer;
    border-radius: 0.5rem;
    margin: 0 -0.25rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    transition: background 0.1s ease;
    -webkit-tap-highlight-color: transparent;
}
.player-row-tappable:hover,
.player-row-tappable:active {
    background: var(--color-bg);
}
.player-row-tappable.present {
    background: #f0fdf4;
}
.player-row-tappable.absent {
    opacity: 0.5;
}

.player-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

/* ─── Player detail ────────────────────────────────────────────────────── */
.player-detail-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0 1.25rem;
}

.player-detail-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.player-match-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.5rem;
    border-radius: 0.5rem;
    margin: 0 -0.5rem;
    border-bottom: 1px solid var(--color-border);
}

.player-match-row:last-child {
    border-bottom: none;
}

.player-match-present {
    background: #f0fdf4;
}

.player-match-absent {
    background: #fff5f5;
    opacity: 0.7;
}

.player-goal-badge {
    font-size: 0.7rem;
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    padding: 0.1rem 0.35rem;
    border-radius: 999px;
    font-weight: 600;
    white-space: nowrap;
}

.player-role-badge {
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.1rem 0.35rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.player-role-starter { background: #d1fae5; color: #065f46; }
.player-role-sub     { background: #fef3c7; color: #92400e; }
.player-role-absent  { background: #fee2e2; color: #991b1b; }

.player-time-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    min-width: 80px;
}

.player-time-bar {
    width: 80px;
    height: 6px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.player-time-play {
    height: 100%;
    background: var(--color-primary);
    border-radius: 999px;
    min-width: 4px;
}

/* ─── Lineup group header ─────────────────────────────────────────────── */
.lineup-group-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0 0.375rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    border-bottom: 2px solid var(--color-border);
    margin-bottom: 0.25rem;
}

/* ─── Badge utilities ─────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-green  { background: #d1fae5; color: #065f46; }
.badge-orange { background: var(--color-primary-light); color: var(--color-primary-dark); }
.badge-gray   { background: #f3f4f6; color: #374151; }
.badge-red    { background: #fee2e2; color: #991b1b; }
.badge-blue   { background: #dbeafe; color: #1e40af; }

/* ─── Loading spinner ─────────────────────────────────────────────────── */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--color-primary-light);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: inline-block;
    flex-shrink: 0;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ─── Toast notification ──────────────────────────────────────────────── */
.toast {
    position: fixed;
    bottom: 72px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-dark);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.9375rem;
    font-weight: 500;
    z-index: 200;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
    animation: toast-in 0.2s ease;
    max-width: calc(100vw - 2rem);
    text-align: center;
}

.toast.toast-error {
    background: var(--color-danger);
}

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

@keyframes toast-in {
    from { opacity: 0; transform: translateX(-50%) translateY(8px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ─── Empty state ─────────────────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--color-text-muted);
}

.empty-state-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.empty-state-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.375rem;
    color: var(--color-text);
}

/* ─── Section header ──────────────────────────────────────────────────── */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
}

/* ─── Number input spinner hide ──────────────────────────────────────── */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    opacity: 1;
}

/* ─── Checkbox custom ─────────────────────────────────────────────────── */
.checkbox-primary {
    accent-color: var(--color-primary);
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* ─── Wizard step indicator ───────────────────────────────────────────── */
.wizard-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 1.25rem;
    overflow: hidden;
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    position: relative;
}

.wizard-step::before {
    content: '';
    position: absolute;
    top: 14px;
    left: calc(-50% + 14px);
    right: calc(50% + 14px);
    height: 2px;
    background: var(--color-border);
    z-index: 0;
}

.wizard-step:first-child::before {
    display: none;
}

.wizard-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    border: 2px solid var(--color-border);
    background: white;
    color: var(--color-text-muted);
    position: relative;
    z-index: 1;
    transition: all 0.2s ease;
}

.wizard-step.active .wizard-step-num {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    box-shadow: 0 0 0 4px var(--color-primary-light);
}

.wizard-step.done .wizard-step-num {
    background: var(--color-success);
    border-color: var(--color-success);
    color: white;
}

.wizard-step.done::before,
.wizard-step.active::before {
    background: var(--color-success);
}

.wizard-step-label {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-align: center;
    line-height: 1.2;
    max-width: 60px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.wizard-step.active .wizard-step-label {
    color: var(--color-primary);
}

.wizard-step.done .wizard-step-label {
    color: var(--color-success);
}

/* ─── Wizard step content transitions ────────────────────────────────── */
.wizard-panel {
    animation: wizard-in 0.2s ease;
}

@keyframes wizard-in {
    from { opacity: 0; transform: translateX(12px); }
    to   { opacity: 1; transform: translateX(0); }
}

.wizard-panel-back {
    animation: wizard-in-back 0.2s ease;
}

@keyframes wizard-in-back {
    from { opacity: 0; transform: translateX(-12px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ─── Goal entry modal (slide-up sheet) ───────────────────────────────── */
.goal-sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 60;
    animation: backdrop-in 0.2s ease;
}

@keyframes backdrop-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.goal-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 1.25rem 1.25rem 0 0;
    z-index: 61;
    padding: 1.25rem 1rem 2rem;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.18);
    animation: sheet-up 0.28s cubic-bezier(0.32, 0.72, 0, 1);
}

@keyframes sheet-up {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

/* Drag handle */
.sheet-handle {
    width: 40px;
    height: 5px;
    border-radius: 3px;
    background: #d1d5db;
    margin: 0 auto 1rem;
}

/* Player picker inside sheet */
.player-picker {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.player-picker-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0.625rem 0.5rem;
    border: 2px solid var(--color-border);
    border-radius: 0.625rem;
    background: white;
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text);
    transition: all 0.15s ease;
    min-height: 64px;
    -webkit-tap-highlight-color: transparent;
}

.player-picker-btn:hover,
.player-picker-btn:active {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
}

.player-picker-btn.selected {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
}

.player-picker-btn .player-picker-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.player-picker-btn.selected .player-picker-avatar {
    background: var(--color-primary);
    color: white;
}

/* Large minute input */
.minute-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.minute-input-large {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    width: 100px;
    padding: 0.625rem;
    border: 2px solid var(--color-border);
    border-radius: 0.75rem;
    background: white;
    color: var(--color-text);
    min-height: 64px;
}
.minute-input-large:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(244,121,32,0.2);
}

/* Goal type toggle buttons */
.goal-type-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 1rem 0.5rem;
    border: 2px solid var(--color-border);
    border-radius: 0.75rem;
    background: white;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-muted);
    transition: all 0.15s ease;
    min-height: 80px;
    -webkit-tap-highlight-color: transparent;
}

.goal-type-btn .goal-type-icon {
    font-size: 1.75rem;
    line-height: 1;
}

.goal-type-btn:hover,
.goal-type-btn.active {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
}

.goal-type-btn.opp.active {
    border-color: #ef4444;
    background: #fee2e2;
    color: #991b1b;
}

/* ─── Mobile-first breakpoints ────────────────────────────────────────── */
@media (min-width: 640px) {
    .main-content {
        padding: 1.5rem;
        padding-bottom: 90px;
    }

    .card {
        padding: 1.5rem;
    }

    .goal-sheet {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: 100%;
        max-width: 480px;
        border-radius: 1.25rem;
        bottom: 50%;
        transform: translate(-50%, 50%);
        animation: none;
    }
}

@media (min-width: 768px) {
    .bottom-nav {
        display: none;
    }

    .main-content {
        padding-bottom: 2rem;
    }

    /* Desktop sidebar nav could go here in a future phase */
}

/* ─── Transition utilities ────────────────────────────────────────────── */
[x-cloak] { display: none !important; }

.fade-enter { opacity: 0; transform: translateY(4px); }
.fade-enter-active { transition: opacity 0.2s ease, transform 0.2s ease; }
