/**
 * Fishing Competition Manager - Main Stylesheet
 * 
 * This CSS file provides a modern, responsive design for the entire application.
 * 
 * Structure:
 * 1. CSS Reset & Base Styles
 * 2. Color Variables
 * 3. Layout Components (navbar, container, grid)
 * 4. Forms & Inputs
 * 5. Cards & Tables
 * 6. Buttons
 * 7. Alerts & Flash Messages
 * 8. Page-Specific Styles
 * 9. Responsive Design
 */

/* ===== 1. CSS RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: #ecf0f1;
    min-height: 100vh;
}

/* ===== 2. COLOR VARIABLES ===== */
:root {
    --primary-color: #3498db;
    --secondary-color: #7f8c8d;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --info-color: #16a085;
    --dark-color: #2c3e50;
    --darker-color: #34495e;
    --card-bg: #ffffff;
    --card-header-bg: #ecf0f1;
    --light-color: #ecf0f1;
    --border-color: #dfe6e9;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.15);
    --hover-bg: #f8f9fa;
}

/* ===== 3. LAYOUT COMPONENTS ===== */

/* Container - centers content and provides padding */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation Bar */
.navbar {
    background: linear-gradient(135deg, #2c3e50 0%, #16a085 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: none;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.nav-brand .logo {
    height: 110px;
    width: auto;
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .nav-brand .logo {
        height: 60px;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
}

.nav-brand .logo:hover {
    transform: scale(1.05);
}

/* Hamburger Menu Button */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
    position: relative;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Alert styling for Admin link when there are pending catches */
.nav-link-alert {
    background-color: rgba(220, 38, 38, 0.3);
    animation: pulse-red 2s infinite;
}

.nav-link-alert:hover {
    background-color: rgba(220, 38, 38, 0.5);
}

@keyframes pulse-red {
    0%, 100% {
        background-color: rgba(220, 38, 38, 0.3);
    }
    50% {
        background-color: rgba(220, 38, 38, 0.5);
    }
}

.badge-alert {
    background: #dc2626;
    color: white;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-left: 0.25rem;
}

.nav-link-small {
    color: white;
    text-decoration: none;
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
}

.nav-user {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.username {
    font-weight: 500;
}

.role-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.role-master {
    background-color: #dc2626;
    color: white;
}

.role-comp_admin {
    background-color: #7c3aed;
    color: white;
}

.role-admin {
    background-color: #2563eb;
    color: white;
}

.role-user {
    background-color: #059669;
    color: white;
}

/* Main Content Area */
.main-content {
    background-color: var(--card-bg);
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
    margin: 2rem auto;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    max-width: 1200px;
    width: 95%;
    border: 1px solid var(--border-color);
}

/* Footer */
.footer {
    background-color: #34495e;
    color: #ecf0f1;
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: none;
}

.footer p {
    margin: 0.5rem 0;
    font-size: 0.875rem;
}

/* ===== 4. FORMS & INPUTS ===== */

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: #ffffff;
    color: var(--text-primary);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control-file {
    width: 100%;
    padding: 0.75rem;
    border: 2px dashed var(--border-color);
    border-radius: 6px;
    background-color: #ffffff;
    color: var(--text-primary);
    cursor: pointer;
}

/* Drag and Drop Zone */
.drop-zone {
    width: 100%;
    min-height: 200px;
    padding: 2rem;
    border: 3px dashed #dfe6e9;
    border-radius: 12px;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drop-zone:hover {
    border-color: #16a085;
    background-color: rgba(22, 160, 133, 0.05);
}

.drop-zone-active {
    border-color: #16a085;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.05), rgba(22, 160, 133, 0.1));
    transform: scale(1.02);
}

.drop-zone-content {
    text-align: center;
}

.drop-zone-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.drop-zone-text {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 0.5rem 0;
    font-weight: 500;
}

.drop-zone-or {
    color: var(--text-secondary);
    margin: 1rem 0;
    font-size: 0.9rem;
}

.image-preview {
    margin-top: 1rem;
    text-align: center;
}

.image-preview img {
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow);
}

.form-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--secondary-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* ===== 5. CARDS & TABLES ===== */

.card {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.card-header {
    background: linear-gradient(135deg, #2c3e50, #16a085);
    padding: 1.5rem;
    border-bottom: none;
}

.card-header h2 {
    margin: 0;
    color: white;
}

.card-header h3 {
    margin: 0;
    color: white;
}

.card-header small {
    color: white;
    opacity: 0.85;
}

.card-header p {
    color: white;
    opacity: 0.95;
}

.card-body {
    padding: 1.5rem;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
}

table thead {
    background-color: #f8f9fa;
}

table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-primary);
}

table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

table tbody tr:hover {
    background-color: var(--hover-bg);
}

.current-user {
    background-color: rgba(52, 152, 219, 0.15);
    font-weight: 600;
}

.leaderboard-table .rank {
    font-weight: bold;
    font-size: 1.2rem;
    color: #16a085;
}

.leaderboard-table .points {
    font-weight: 600;
    color: #27ae60;
}

/* Leaderboard Card Styling */
.dashboard-sidebar-section .card {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.05), rgba(22, 160, 133, 0.05));
    border: 2px solid rgba(22, 160, 133, 0.3);
}

/* Species Table Styling */
.species-table {
    width: 100%;
    border-collapse: collapse;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.03), rgba(22, 160, 133, 0.03));
}

.species-table thead {
    background: linear-gradient(135deg, #2c3e50, #16a085);
}

.species-table thead th {
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid rgba(22, 160, 133, 0.3);
}

.species-table tbody tr {
    border-bottom: 1px solid var(--border-color);
}

.species-table tbody tr:hover {
    background-color: rgba(22, 160, 133, 0.1);
}

.species-table td {
    padding: 0.75rem 1rem;
    color: var(--text-primary);
}

.species-table .uid {
    color: #16a085;
    font-weight: bold;
}

.species-table .scientific {
    font-style: italic;
    color: var(--text-secondary);
}

.species-table input[type="number"] {
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 3px 8px;
    border-radius: 4px;
}

.species-table input[type="number"]:focus {
    outline: none;
    border-color: #16a085;
    box-shadow: 0 0 0 2px rgba(22, 160, 133, 0.1);
}

/* ===== 6. BUTTONS ===== */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #636e72;
}

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

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

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

.btn-link {
    background-color: transparent;
    color: var(--primary-color);
    text-decoration: underline;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ===== 7. ALERTS & FLASH MESSAGES ===== */

.flash-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1100;
    max-width: 400px;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    position: relative;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background-color: #fef3c7;
    color: #92400e;
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    background-color: #dbeafe;
    color: #1e40af;
    border-left: 4px solid var(--info-color);
}

.alert-close {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: inherit;
}

/* ===== 8. PAGE-SPECIFIC STYLES ===== */

/* Login Page */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.login-card {
    background-color: var(--card-bg);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    width: 100%;
    border: 1px solid var(--border-color);
}

.login-card h1 {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.subtitle {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.login-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.login-info h3 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-top: 1rem;
}

.login-info p {
    color: var(--secondary-color);
    font-size: 0.875rem;
}

/* Dashboard */
.dashboard-comp-name {
    margin-bottom: 1.5rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #2c3e50, #16a085);
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
}

.dashboard-comp-name h1 {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

/* Stats Grid - 4 cards across */
.stats-grid-four {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, #2c3e50, #16a085);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
}

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

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    margin: 0.25rem 0;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-primary {
    background: linear-gradient(135deg, #2c3e50, #16a085);
}

.stat-success {
    background: linear-gradient(135deg, #34495e, #1abc9c);
}

.stat-info {
    background: linear-gradient(135deg, #2c3e50, #27ae60);
}

.stat-warning {
    background: linear-gradient(135deg, #2c3e50, #16a085);
}

/* Dashboard Layout - 2/3 left, 1/3 right */
.dashboard-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-main-section {
    min-width: 0;
}

.dashboard-main-section .card-header {
    background: linear-gradient(135deg, #2c3e50, #16a085);
    color: white;
    border-bottom: none;
}

.dashboard-main-section .card-header h2 {
    color: white;
}

.dashboard-sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dashboard-sidebar-section .card-header {
    background: linear-gradient(135deg, #2c3e50, #16a085);
    color: white;
    border-bottom: none;
}

.dashboard-sidebar-section .card-header h2 {
    color: white;
}

/* Catches Tile Grid */
.catches-tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.catch-tile {
    background-color: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.catch-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.unverified-tile {
    border-color: var(--warning-color);
    background-color: rgba(243, 156, 18, 0.1);
}

.catch-tile-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.catch-tile-image.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ecf0f1;
    font-size: 3rem;
    border: 1px solid var(--border-color);
    color: #bdc3c7;
}

.catch-tile-content {
    padding: 0.75rem;
}

.catch-tile-species {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.catch-tile-angler {
    font-size: 0.75rem;
    color: var(--secondary-color);
    margin: 0 0 0.5rem 0;
}

.catch-tile-stats {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.catch-tile-stats span {
    font-size: 0.75rem;
    color: var(--text-primary);
}

.catch-tile-date {
    font-size: 0.7rem;
    color: var(--secondary-color);
    margin: 0 0 0.5rem 0;
}

.tile-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.tile-badge.verified {
    background-color: var(--success-color);
    color: white;
}

.tile-badge.pending {
    background-color: var(--warning-color);
    color: var(--darker-color);
}

.catch-count {
    font-size: 0.875rem;
    color: var(--secondary-color);
    font-weight: normal;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    color: var(--text-primary);
    font-size: 2.5rem;
}

.competition-dates {
    color: var(--secondary-color);
    font-size: 1.125rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.stat-danger {
    background: linear-gradient(135deg, var(--danger-color), #dc2626);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

/* Catches Display */
.catches-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.catch-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    align-items: center;
    background-color: #ffffff;
}

.catch-item.unverified {
    background-color: rgba(245, 158, 11, 0.15);
    border-color: var(--warning-color);
}

.catch-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    object-fit: cover;
}

.catch-thumbnail.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ecf0f1;
    font-size: 2rem;
    border: 1px solid var(--border-color);
    color: #bdc3c7;
}

.catch-info {
    flex: 1;
}

.catch-species {
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.catch-angler {
    color: var(--secondary-color);
    margin: 0;
    font-size: 0.875rem;
}

.catch-meta {
    color: var(--secondary-color);
    margin: 0;
    font-size: 0.875rem;
}

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

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

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

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

.badge-info {
    background-color: var(--info-color);
    color: white;
}

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

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

.badge-dark {
    background-color: #34495e;
    color: white;
    border: none;
}

.badge-danger {
    background-color: var(--danger-color);
    color: white;
}

.points {
    display: block;
    color: var(--success-color);
    font-weight: 600;
    margin-top: 0.25rem;
}

/* Longest Fish Display */
.longest-fish {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.fish-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.fish-details {
    flex: 1;
}

.fish-length {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0;
}

.fish-species {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin: 0.5rem 0;
}

.fish-angler,
.fish-date {
    color: var(--secondary-color);
    margin: 0.25rem 0;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Admin Actions */
.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.action-card {
    background-color: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s;
}

.action-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    background-color: var(--hover-bg);
}

.action-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: none;
}

.action-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.action-description {
    font-size: 0.875rem;
    color: var(--secondary-color);
}

/* Image Preview */
.image-preview {
    margin-top: 1rem;
    text-align: center;
}

.image-preview img {
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.no-data {
    text-align: center;
    color: var(--secondary-color);
    padding: 2rem;
    font-style: italic;
}

/* Page Header */
.page-header {
    margin-bottom: 2rem;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, #2c3e50, #16a085);
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
}

.page-header h1 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.page-header p {
    color: white;
    font-size: 1.1rem;
    opacity: 0.95;
}

/* ===== 9. RESPONSIVE DESIGN ===== */

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #2c3e50 0%, #16a085 100%);
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        max-height: 500px;
        padding: 1rem 0;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
        font-size: 1rem;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.15);
    }
    
    .nav-user {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
        border-top: 2px solid rgba(255, 255, 255, 0.2);
        width: 100%;
    }
    
    .nav-link-small {
        padding: 0.5rem 1rem;
        width: 100%;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .flash-container {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid-four {
        grid-template-columns: 1fr 1fr;
    }
    
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
    
    .catches-tile-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .longest-fish {
        flex-direction: column;
    }
    
    .fish-image {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .stats-grid-four {
        grid-template-columns: 1fr;
    }
    
    .catches-tile-grid {
        grid-template-columns: 1fr;
    }
}
/* Bulk Import Styles */
.bulk-import-form textarea {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

/* Import Table Styles */
.table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
}

.import-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
}

.import-table th {
    background: linear-gradient(135deg, #2c3e50, #16a085);
    color: white;
    padding: 10px;
    text-align: left;
    font-weight: 600;
    border: 1px solid var(--border-color);
}

.import-table td {
    padding: 5px;
    border: 1px solid var(--border-color);
}

.import-table .table-input {
    width: 100%;
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px;
    border-radius: 3px;
    font-size: 0.9rem;
}

.import-table .table-input:focus {
    outline: none;
    border-color: #16a085;
    background: white;
    box-shadow: 0 0 0 2px rgba(22, 160, 133, 0.1);
}

.import-table .table-input::placeholder {
    color: #95a5a6;
    font-size: 0.85rem;
}

.import-row td:first-child {
    text-align: center;
    color: white;
    font-weight: 600;
    background: linear-gradient(135deg, #34495e, #1abc9c);
}

.btn-remove {
    background: var(--danger-color);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    transition: all 0.2s;
}

.btn-remove:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.table-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.import-tips {
    margin-top: 20px;
    padding: 15px;
    background: rgba(22, 160, 133, 0.1);
    border-radius: 5px;
    border-left: 3px solid #16a085;
    color: var(--text-primary);
}

.import-tips strong {
    color: var(--text-primary);
}

.import-tips ul {
    margin: 10px 0 0 20px;
    color: var(--text-primary);
}

.import-tips li {
    margin: 5px 0;
    color: var(--text-primary);
}

/* Length Rules Styles */
details summary {
    cursor: pointer;
    color: var(--primary-color);
    font-weight: 500;
}

details summary:hover {
    color: var(--info-color);
}

details ul {
    background: var(--darker-color);
    padding: 10px;
    border-radius: 4px;
    margin-top: 5px;
    color: #ffffff;
}

details li {
    margin: 5px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-link {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 5px;
}

.btn-link:hover {
    opacity: 0.7;
}

details form input[type="number"] {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 3px 5px;
    border-radius: 3px;
    margin: 0 2px;
}

details form input[type="number"]:focus {
    outline: none;
    border-color: var(--primary-color);
}
/* User list clickable usernames */
.table td a {
    transition: color 0.2s ease;
}

.table td a:hover {
    color: #16a085 !important;
    text-decoration: underline !important;
}
