/* Fish Tracker Styles - Austin Reel Inspired */

:root {
    --primary-color: #1e3a5f; /* Deep blue - typical fishing club color */
    --secondary-color: #2c5282; /* Medium blue */
    --accent-color: #d97706; /* Orange/amber accent */
    --success-color: #059669; /* Green */
    --warning-color: #d97706; /* Orange */
    --danger-color: #dc2626; /* Red */
    --dark-bg: #1f2937; /* Dark gray */
    --light-bg: #f8fafc; /* Light gray/blue */
    --card-bg: #ffffff;
    --text-primary: #1f2937; /* Dark text */
    --text-secondary: #6b7280; /* Medium gray */
    --border-color: #e5e7eb; /* Light border */
    --header-bg: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    color: var(--text-primary);
    margin: 0;
    padding: 0;
}

/* Woodgrain Header Styles - Austin Reel Inspired */
.header {
    background: 
        linear-gradient(90deg, 
            rgba(139, 90, 43, 0.9) 0%, 
            rgba(160, 110, 60, 0.9) 25%, 
            rgba(180, 130, 70, 0.9) 50%, 
            rgba(160, 110, 60, 0.9) 75%, 
            rgba(139, 90, 43, 0.9) 100%
        ),
        repeating-linear-gradient(
            0deg,
            rgba(101, 67, 33, 0.1) 0px,
            rgba(139, 90, 43, 0.2) 1px,
            rgba(160, 110, 60, 0.1) 2px,
            rgba(180, 130, 70, 0.2) 3px,
            rgba(139, 90, 43, 0.1) 4px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(101, 67, 33, 0.1) 0px,
            rgba(139, 90, 43, 0.15) 2px,
            rgba(160, 110, 60, 0.1) 4px,
            rgba(180, 130, 70, 0.15) 6px,
            rgba(139, 90, 43, 0.1) 8px
        ),
        linear-gradient(135deg, #8B5A2B 0%, #A06E3C 50%, #B48246 100%);
    border-radius: 0;
    padding: 2rem 0;
    margin-bottom: 0;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    border-bottom: 4px solid #654321;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(0, 0, 0, 0.03) 10px,
            rgba(0, 0, 0, 0.03) 20px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 15px,
            rgba(255, 255, 255, 0.05) 15px,
            rgba(255, 255, 255, 0.05) 30px
        );
    pointer-events: none;
    z-index: 1;
}

.header .container {
    position: relative;
    z-index: 2;
}

.header h1 {
    color: #FFF8DC;
    font-weight: 700;
    margin: 0;
    font-size: 2.5rem;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(0, 0, 0, 0.5),
        1px 1px 0 rgba(139, 90, 43, 0.8);
    font-family: 'Georgia', 'Times New Roman', serif;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap;
    white-space: nowrap;
    letter-spacing: 1px;
}

.header h1 i {
    color: #FFD700;
    font-size: 2.2rem;
    flex-shrink: 0;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(255, 215, 0, 0.5);
}

.version-number {
    font-size: 0.7rem;
    font-weight: 400;
    color: #FFD700;
    background: rgba(101, 67, 33, 0.6);
    padding: 4px 8px;
    border-radius: 12px;
    margin-left: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 215, 0, 0.4);
    letter-spacing: 0.5px;
    flex-shrink: 0;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.version-number:hover {
    background: rgba(101, 67, 33, 0.8);
    border-color: rgba(255, 215, 0, 0.6);
    transform: translateY(-1px);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 10px rgba(255, 215, 0, 0.3);
}

.version-number:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.header .subtitle {
    color: #F5DEB3;
    margin-bottom: 0;
    font-size: 1rem;
    font-style: italic;
    font-family: 'Georgia', 'Times New Roman', serif;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.5px;
}

.stats-summary {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.stat-item {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.stat-item.total-weight {
    background: var(--accent-color);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Main Content */
.main-content {
    padding: 20px;
    background: var(--light-bg);
    min-height: calc(100vh - 120px);
}

/* Card Styles - Clean fishing club style */
.card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--card-bg);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 15px 20px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.card-header h5 {
    margin: 0;
    font-size: 1.2rem;
    font-family: 'Arial', 'Helvetica', sans-serif;
}

.card-body {
    padding: 20px;
    background: var(--card-bg);
}

/* Add Fish Form - Clean and functional */
.add-fish-card .form-label {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.add-fish-card .form-control {
    border: 2px solid var(--border-color);
    border-radius: 6px;
    padding: 12px 15px;
    transition: all 0.3s ease;
    font-size: 1rem;
    background: white;
}

.add-fish-card .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
    outline: none;
}

.add-fish-card .form-select {
    border: 2px solid var(--border-color);
    border-radius: 6px;
    padding: 12px 15px;
    transition: all 0.3s ease;
    font-size: 1rem;
    background: white;
}

.add-fish-card .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 6px;
    padding: 12px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 95, 0.4);
}

/* Cull Alert Card - Fishing club warning style */
.cull-alert-card {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 2px solid var(--warning-color);
    animation: pulse 2s infinite;
    border-radius: 8px;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.cull-alert-card .card-body {
    padding: 25px;
    text-align: center;
}

.cull-alert-card h5 {
    color: #92400e;
    font-weight: 700;
    margin-bottom: 15px;
    font-family: 'Arial', 'Helvetica', sans-serif;
}

.btn-warning {
    background: var(--warning-color);
    border: none;
    border-radius: 6px;
    padding: 12px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
}

.btn-warning:hover {
    background: #b45309;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.4);
}

/* Top Fish List - Tournament style */
.top-fish-card .sort-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-fish-card .form-select {
    width: auto;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 600;
}

.top-fish-card .form-select:focus {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
    outline: none;
}

.fish-item {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 5px solid var(--primary-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.fish-item:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #ffffff, #f1f5f9);
}

.fish-item.top-1 { 
    border-left-color: #fbbf24; 
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
}
.fish-item.top-2 { 
    border-left-color: #d1d5db; 
    background: linear-gradient(135deg, #f9fafb, #f3f4f6);
}
.fish-item.top-3 { 
    border-left-color: #f97316; 
    background: linear-gradient(135deg, #fff7ed, #fed7aa);
}
.fish-item.top-4 { border-left-color: var(--primary-color); }
.fish-item.top-5 { border-left-color: var(--secondary-color); }

.fish-rank {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.fish-rank.rank-1 { background: #fbbf24; color: #78350f; }
.fish-rank.rank-2 { background: #d1d5db; color: #374151; }
.fish-rank.rank-3 { background: #f97316; color: white; }
.fish-rank.rank-4 { background: var(--primary-color); }
.fish-rank.rank-5 { background: var(--secondary-color); }

.fish-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.fish-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
    font-family: 'Arial', 'Helvetica', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fish-species {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0;
    font-style: italic;
}

.fish-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.fish-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

.fish-stat i {
    color: var(--primary-color);
}

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

.fish-actions .btn {
    border-radius: 6px;
    padding: 8px 15px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Empty State */
.empty-state {
    padding: 60px 20px;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 8px;
    border: 2px dashed var(--border-color);
}

.empty-state i {
    color: var(--text-secondary);
    opacity: 0.5;
}

.empty-state h5 {
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 600;
}

/* History Card - Clean records style */
.history-card .card-header {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.history-item {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    border-left: 3px solid var(--secondary-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.history-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #ffffff, #f1f5f9);
}

.history-item .fish-name {
    font-size: 1.1rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.history-item .fish-stats {
    font-size: 0.85rem;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.history-item .fish-date {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 0;
    font-style: italic;
}

/* Cull Options */
.cull-option {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cull-option:hover {
    border-color: var(--warning-color);
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    transform: translateY(-2px);
}

.cull-option.selected {
    border-color: var(--danger-color);
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 15px 0;
        text-align: center;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .stats-summary {
        justify-content: center;
        margin-top: 15px;
    }
    
    .stat-item {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .fish-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .fish-stats {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .fish-actions {
        flex-direction: column;
    }
    
    .main-content {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .header h1 {
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .fish-item {
        padding: 15px;
    }
    
    .fish-rank {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-in {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Universal Browser Compatibility Styles */
@supports not (-webkit-appearance: none) {
    /* Non-WebKit browsers (Firefox, Edge Legacy) */
    .btn {
        appearance: none;
        -moz-appearance: none;
        transform: translateZ(0);
        backface-visibility: hidden;
        will-change: transform;
    }
    
    .btn:hover {
        transform: translateZ(0) translateY(-2px);
    }
    
    .btn:active {
        transform: translateZ(0);
    }
    
    button[type="submit"] {
        appearance: none;
        -moz-appearance: none;
        transform: translateZ(0);
        pointer-events: auto !important;
        cursor: pointer !important;
    }
    
    input[type="number"],
    input[type="text"],
    select {
        appearance: none;
        -moz-appearance: none;
        transform: translateZ(0);
    }
}

/* WebKit browsers (Chrome, Safari, Edge) */
@supports (-webkit-appearance: none) {
    .btn {
        -webkit-appearance: none;
        -webkit-transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        transform: translateZ(0);
        will-change: transform;
    }
    
    .btn:hover {
        -webkit-transform: translateZ(0) translateY(-2px);
        transform: translateZ(0) translateY(-2px);
    }
    
    .btn:active {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    /* Universal form submission fixes */
    form {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    button[type="submit"] {
        -webkit-appearance: none;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        pointer-events: auto !important;
        cursor: pointer !important;
    }
    
    /* Universal input fixes */
    input[type="number"],
    input[type="text"],
    select {
        -webkit-appearance: none;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

/* Microsoft Edge specific fixes */
@supports (-ms-ime-align: auto) {
    .btn {
        -ms-touch-action: manipulation;
        touch-action: manipulation;
    }
    
    input[type="number"] {
        -ms-touch-action: manipulation;
        touch-action: manipulation;
    }
}

/* Firefox specific fixes */
@supports (-moz-appearance: none) {
    .btn {
        -moz-appearance: none;
        -moz-osx-font-smoothing: grayscale;
    }
    
    input[type="number"] {
        -moz-appearance: textfield;
    }
    
    input[type="number"]::-webkit-outer-spin-button,
    input[type="number"]::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }
    
    input[type="number"]::-moz-number-spin-box {
        -moz-appearance: none;
    }
}

/* Universal event handling fixes */
.btn:focus {
    outline: 2px solid var(--primary-color) !important;
    outline-offset: 2px !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Universal mobile touch fixes */
@media (max-width: 768px) {
    .btn {
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        min-height: 44px !important;
        min-width: 44px !important;
    }
    
    .btn:hover {
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    }
    
    /* Universal input mobile fixes */
    input[type="number"],
    input[type="text"],
    select {
        font-size: 16px !important;
        min-height: 44px !important;
        -webkit-text-size-adjust: 100%;
        -moz-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    
    /* Universal form mobile fixes */
    form {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

/* Safari specific mobile fixes */
@media (max-width: 768px) and (-webkit-min-device-pixel-ratio: 2) {
    .btn {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
        -webkit-touch-callout: none;
    }
    
    input:focus {
        -webkit-appearance: none;
        -webkit-border-radius: 0;
    }
}

/* Chrome specific mobile fixes */
@media (max-width: 768px) and (-webkit-min-device-pixel-ratio: 0) {
    .btn {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }
    
    .btn:hover {
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    }
}

/* Edge specific mobile fixes */
@media (max-width: 768px) and (-ms-high-contrast: none) {
    .btn {
        -ms-touch-action: manipulation;
        touch-action: manipulation;
    }
}

/* Universal scrollbar styling */
.change-log::-webkit-scrollbar,
.card-body::-webkit-scrollbar {
    width: 8px;
}

.change-log::-webkit-scrollbar-track,
.card-body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.change-log::-webkit-scrollbar-thumb,
.card-body::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.change-log::-webkit-scrollbar-thumb:hover,
.card-body::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Firefox scrollbar */
.change-log,
.card-body {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f1f5f9;
}

/* Edge scrollbar */
@supports (-ms-ime-align: auto) {
    .change-log,
    .card-body {
        -ms-overflow-style: -ms-autohiding-scrollbar;
    }
}

/* Change Log Modal Styles */
.change-log {
    max-height: 60vh;
    overflow-y: auto;
}

.version-section {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.version-section:last-child {
    border-bottom: none;
}

.version-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 4px 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-color);
}

.feature-list li strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Version button styling */
.version-number {
    font-size: 0.7rem;
    font-weight: 400;
    color: #ffd700;
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 8px;
    border-radius: 12px;
    margin-left: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 215, 0, 0.3);
    letter-spacing: 0.5px;
    flex-shrink: 0;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
}

.version-number:hover {
    background: rgba(255, 215, 0, 0.25);
    border-color: rgba(255, 215, 0, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.version-number:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(255, 215, 0, 0.3);
}

/* Mobile responsive for change log */
@media (max-width: 576px) {
    .change-log {
        max-height: 50vh;
    }
    
    .version-title {
        font-size: 0.85rem;
    }
    
    .feature-list li {
        font-size: 0.8rem;
    }
}

.card-body::-webkit-scrollbar {
    width: 8px;
}

.card-body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.card-body::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.card-body::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Tournament-style badges */
.badge {
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Button styling consistency */
.btn {
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

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

.btn-outline-warning {
    border: 2px solid var(--warning-color);
    color: var(--warning-color);
    background: transparent;
}

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

.btn-outline-danger {
    border: 2px solid var(--danger-color);
    color: var(--danger-color);
    background: transparent;
}

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

/* Cull Target Highlighting */
.cull-target {
    border: 3px solid var(--danger-color) !important;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(220, 38, 38, 0.05) 100%) !important;
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.3) !important;
    animation: pulse-cull 2s infinite;
}

.cull-badge {
    background: var(--danger-color);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-right: 8px;
    animation: flash-badge 1.5s infinite;
}

@keyframes pulse-cull {
    0% {
        box-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(220, 38, 38, 0.6);
    }
    100% {
        box-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
    }
}

@keyframes flash-badge {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Length Conversion Table Styles */
.conversion-table-card {
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.conversion-table-card .card-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
    border-bottom: none;
}

.conversion-table-card .card-header h6 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.conversion-table .table {
    margin: 0;
    font-size: 0.85rem;
}

.conversion-table .table th {
    background: var(--light-bg);
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    padding: 8px;
}

.conversion-table .table td {
    text-align: center;
    padding: 6px 8px;
    vertical-align: middle;
    border-color: var(--border-color);
}

.conversion-table .table td strong {
    color: var(--primary-color);
    font-weight: 600;
}

.conversion-table .table td code {
    background: var(--light-bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: var(--accent-color);
    border: 1px solid var(--border-color);
}

.conversion-table .table td.text-muted {
    font-size: 0.8rem;
}

.conversion-table .table td.text-muted i {
    color: var(--primary-color);
    margin-right: 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .conversion-table .table {
        font-size: 0.8rem;
    }
    
    .conversion-table .table th,
    .conversion-table .table td {
        padding: 4px 6px;
    }
    
    .conversion-table .table td code {
        padding: 1px 4px;
        font-size: 0.75rem;
    }
}

/* Length Conversion Guide - Single Line Styling */
.conversion-item {
    margin: 0 15px;
    display: inline-block;
    white-space: nowrap;
}

.conversion-item strong {
    color: var(--primary-color);
    font-weight: 600;
}

.conversion-item code {
    background-color: var(--light-bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: var(--accent-color);
    border: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .conversion-item {
        margin: 0 10px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .conversion-item {
        display: block;
        margin: 2px 0;
        text-align: center;
    }
}

/* Individual Angler Stats in Combined Section */
.angler-individual-stats {
    background: var(--light-bg);
    border-radius: 8px;
    padding: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.angler-individual-stats:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.angler-individual-stats h6 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
    margin-bottom: 10px;
}

.angler-individual-stats .d-flex > div {
    text-align: center;
    flex: 1;
}

.angler-individual-stats small {
    display: block;
    font-size: 0.7rem;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.angler-individual-stats strong {
    font-size: 0.85rem;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .angler-individual-stats {
        margin-bottom: 10px;
    }
    
    .angler-individual-stats .d-flex {
        flex-direction: column;
        gap: 8px;
    }
    
    .angler-individual-stats .d-flex > div {
        text-align: center;
    }
}

/* Delete All Button in Header */
.delete-all-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-left: 10px;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.delete-all-btn:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.4);
    color: white;
}

.delete-all-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.delete-all-btn i {
    margin-right: 4px;
    font-size: 0.7rem;
}

/* Export Combined Stats Button */
.export-combined-btn {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.export-combined-btn:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.4);
    color: white;
}

.export-combined-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.export-combined-btn i {
    margin-right: 4px;
    font-size: 0.75rem;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .delete-all-btn {
        padding: 4px 8px;
        font-size: 0.7rem;
        margin-left: 5px;
    }
    
    .delete-all-btn i {
        margin-right: 2px;
    }
    
    .export-combined-btn {
        padding: 4px 8px;
        font-size: 0.7rem;
        margin-left: 5px;
    }
    
    .export-combined-btn i {
        margin-right: 2px;
    }
}

/* Mobile Phone Optimizations */
@media (max-width: 576px) {
    /* Header adjustments */
    .header h1 {
        font-size: 1.5rem !important;
        flex-wrap: nowrap !important; /* Keep on same line */
        white-space: nowrap !important; /* Prevent text wrapping */
    }
    
    .header h1 i {
        font-size: 1.2rem !important;
        flex-shrink: 0 !important;
    }
    
    .header .subtitle {
        font-size: 0.9rem !important;
    }
    
    .version-number {
        font-size: 0.6rem !important;
        padding: 2px 6px !important;
        margin-left: 5px !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }
    
    /* Stats summary mobile */
    .stats-summary {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        align-items: center !important;
    }
    
    .stat-item {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
        padding: 8px !important;
        background: var(--light-bg) !important;
        border-radius: 8px !important;
        margin: 0 !important;
    }
    
    .delete-all-btn {
        width: 100% !important;
        margin: 8px 0 0 0 !important;
        padding: 8px !important;
        font-size: 0.8rem !important;
    }
    
    /* Combined stats mobile layout */
    .combined-stats-card .card-header .d-flex {
        flex-direction: column !important;
        gap: 10px !important;
        align-items: flex-start !important;
    }
    
    .combined-stats-card .card-header h5 {
        margin-bottom: 0 !important;
        font-size: 1rem !important;
        text-align: center !important;
        width: 100% !important;
    }
    
    .export-combined-btn {
        width: 100% !important;
        padding: 8px !important;
        font-size: 0.8rem !important;
        margin: 0 !important;
    }
    
    .combined-stats-card .card-body {
        padding: 1rem !important;
    }
    
    /* Combined stats row - stack vertically */
    .combined-stats-card .card-body .row {
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    .combined-stats-card .card-body .row .col-md-4 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
    
    .combined-stat {
        background: var(--light-bg) !important;
        padding: 15px !important;
        border-radius: 8px !important;
        border: 1px solid var(--border-color) !important;
    }
    
    .combined-stat h4 {
        font-size: 1.2rem !important;
        margin-bottom: 5px !important;
    }
    
    .combined-weight-value {
        font-weight: 800 !important;
        font-size: 1.4rem !important;
        color: #1a5490 !important;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    }
    
    .stat-label {
        font-size: 0.8rem !important;
        margin: 0 !important;
    }
    
    .export-combined-btn {
        width: 100% !important;
        margin: 8px 0 0 0 !important;
        padding: 8px !important;
        font-size: 0.8rem !important;
    }
    
    .combined-stats-card .card-header .d-flex {
        flex-direction: column !important;
        gap: 8px !important;
        align-items: flex-start !important;
    }
    
    .combined-stats-card .card-header h5 {
        margin-bottom: 0 !important;
        font-size: 1rem !important;
    }
    
    .combined-stats-card .card-body {
        padding: 1rem !important;
    }
    
    .combined-stat h4 {
        font-size: 1.2rem !important;
    }
    
    .combined-weight-value {
        font-weight: 800 !important;
        font-size: 1.4rem !important;
        color: #1a5490 !important;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    }
    
    .stat-label {
        font-size: 0.8rem !important;
    }
    
    /* Main angler sections - stack vertically */
    .main-content .container .row .col-md-6 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        margin-bottom: 20px !important;
    }
    
    /* Angler name input mobile */
    .angler-name-input {
        font-size: 16px !important;
        min-height: 44px !important;
        text-align: center !important;
    }
    
    /* Add fish form mobile */
    .add-fish-card .card-body .row {
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    .add-fish-card .card-body .row .col-md-6 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
    
    .add-fish-card .form-label {
        font-size: 0.9rem !important;
        margin-bottom: 8px !important;
        text-align: center !important;
    }
    
    /* Top fish sections mobile */
    .top-fish-card .card-header {
        flex-direction: column !important;
        gap: 10px !important;
        align-items: center !important;
    }
    
    .top-fish-card .card-header h5 {
        font-size: 1rem !important;
        text-align: center !important;
        margin-bottom: 0 !important;
    }
    
    .sort-controls {
        width: 100% !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .sort-controls .form-label {
        margin-right: 10px !important;
        font-size: 0.8rem !important;
    }
    
    .sort-controls .form-select {
        font-size: 0.8rem !important;
        padding: 4px 8px !important;
    }
    
    /* Individual angler stats mobile */
    .angler-individual-stats {
        margin-bottom: 12px !important;
        padding: 8px !important;
    }
    
    .angler-individual-stats .d-flex {
        flex-direction: column !important;
        gap: 6px !important;
    }
    
    .angler-individual-stats .d-flex > div {
        text-align: center !important;
        padding: 4px 0 !important;
    }
    
    .angler-individual-stats h6 {
        font-size: 0.85rem !important;
        margin-bottom: 8px !important;
    }
    
    /* Length Conversion Guide mobile */
    .conversion-table-card .card-body {
        padding: 0.75rem !important;
    }
    
    .conversion-item {
        display: block !important;
        margin: 2px 0 !important;
        text-align: center !important;
        font-size: 0.8rem !important;
        padding: 4px !important;
    }
    
    /* Angler name inputs mobile */
    .angler-header-card .card-body {
        padding: 0.75rem !important;
    }
    
    .d-flex.align-items-center {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }
    
    .angler-name-input {
        font-size: 1rem !important;
        padding: 12px !important;
    }
    
    /* Add Fish forms mobile */
    .add-fish-card .card-body {
        padding: 1rem !important;
    }
    
    .add-fish-card .row {
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    .add-fish-card .col-md-6 {
        flex: 1 !important;
        max-width: 100% !important;
    }
    
    .add-fish-card .form-control {
        font-size: 1rem !important;
        padding: 12px !important;
    }
    
    .add-fish-card .btn {
        padding: 12px !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
    }
    
    /* Top 5 fish sections mobile */
    .top-fish-card .card-body {
        padding: 1rem !important;
    }
    
    .fish-item {
        padding: 12px !important;
        margin-bottom: 8px !important;
    }
    
    .fish-rank {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.9rem !important;
    }
    
    .fish-info {
        flex: 1 !important;
        margin-left: 12px !important;
    }
    
    .fish-name {
        font-size: 0.9rem !important;
        font-weight: 600 !important;
    }
    
    .fish-species {
        font-size: 0.8rem !important;
    }
    
    .fish-stats {
        flex-direction: column !important;
        gap: 4px !important;
        margin-top: 8px !important;
    }
    
    .fish-stat {
        font-size: 0.8rem !important;
    }
    
    .fish-actions {
        flex-direction: column !important;
        gap: 6px !important;
        margin-top: 12px !important;
    }
    
    .fish-actions .btn {
        width: 100% !important;
        padding: 8px !important;
        font-size: 0.8rem !important;
    }
    
    /* Fish items mobile */
    .fish-item {
        padding: 15px !important;
        margin-bottom: 10px !important;
        border-radius: 8px !important;
    }
    
    .fish-rank {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.9rem !important;
        position: absolute !important;
        top: 10px !important;
        right: 10px !important;
    }
    
    .fish-info {
        flex: 1 !important;
        margin-left: 0 !important;
        margin-right: 40px !important; /* Space for rank */
    }
    
    .fish-name {
        font-size: 0.9rem !important;
        font-weight: 600 !important;
    }
    
    .fish-species {
        font-size: 0.8rem !important;
    }
    
    .fish-stats {
        flex-direction: row !important;
        gap: 15px !important;
        margin-top: 8px !important;
        justify-content: flex-start !important;
    }
    
    .fish-stat {
        font-size: 0.8rem !important;
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
    }
    
    .fish-actions {
        flex-direction: column !important;
        gap: 8px !important;
        margin-top: 12px !important;
        width: 100% !important;
    }
    
    .fish-actions .btn {
        width: 100% !important;
        padding: 8px !important;
        font-size: 0.8rem !important;
        min-height: 44px !important;
    }
    
    /* All catches section mobile */
    .all-catches-card .card-body {
        padding: 1rem !important;
    }
    
    /* Empty states mobile */
    .empty-state {
        padding: 2rem 1rem !important;
    }
    
    .empty-state h5 {
        font-size: 1.1rem !important;
    }
    
    .empty-state p {
        font-size: 0.9rem !important;
    }
    
    /* Form labels mobile */
    .form-label {
        font-size: 0.9rem !important;
        margin-bottom: 4px !important;
    }
    
    /* Helper text mobile */
    .text-muted small {
        font-size: 0.75rem !important;
    }
    
    /* Cards mobile */
    .card {
        margin-bottom: 1rem !important;
    }
    
    .card-header {
        padding: 0.75rem 1rem !important;
    }
    
    .card-header h5,
    .card-header h6 {
        font-size: 1rem !important;
        margin: 0 !important;
    }
    
    .card-body {
        padding: 1rem !important;
    }
    
    .history-item {
        padding: 12px !important;
        margin-bottom: 8px !important;
    }
    
    .history-item .fish-stats {
        flex-direction: column !important;
        gap: 4px !important;
        margin-top: 8px !important;
    }
    
    .history-item .fish-actions {
        flex-direction: column !important;
        gap: 6px !important;
        margin-top: 12px !important;
    }
    
    .history-item .fish-actions .btn {
        width: 100% !important;
        padding: 8px !important;
        font-size: 0.8rem !important;
    }
    
    /* Clear all button mobile */
    .clear-all-btn {
        width: 100% !important;
        padding: 12px !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
        margin-top: 12px !important;
    }
    
    /* Cull alerts mobile */
    .cull-alert-card .card-body {
        padding: 1rem !important;
        text-align: center !important;
    }
    
    .cull-alert-card h5 {
        font-size: 1.1rem !important;
    }
    
    .cull-alert-card .btn {
        width: 100% !important;
        padding: 12px !important;
        font-size: 1rem !important;
    }
    
    /* Notifications mobile */
    .alert {
        margin: 8px !important;
        padding: 12px !important;
        font-size: 0.9rem !important;
    }
    
    /* Empty states mobile */
    .empty-state {
        padding: 2rem 1rem !important;
    }
    
    .empty-state h5 {
        font-size: 1.1rem !important;
    }
    
    .empty-state p {
        font-size: 0.9rem !important;
    }
    
    /* Form labels mobile */
    .form-label {
        font-size: 0.9rem !important;
        margin-bottom: 4px !important;
    }
    
    /* Helper text mobile */
    .text-muted small {
        font-size: 0.75rem !important;
    }
    
    /* Cards mobile */
    .card {
        margin-bottom: 1rem !important;
    }
    
    .card-header {
        padding: 0.75rem 1rem !important;
    }
    
    .card-header h5,
    .card-header h6 {
        font-size: 1rem !important;
        margin: 0 !important;
    }
    
    .card-body {
        padding: 1rem !important;
    }
    
    /* Container adjustments */
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .container-fluid {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    /* Row spacing mobile */
    .row {
        margin-bottom: 1rem !important;
    }
    
    /* Notifications mobile */
    .alert {
        margin: 8px !important;
        padding: 12px !important;
        font-size: 0.9rem !important;
        min-height: 44px !important;
        touch-action: manipulation !important;
    }
    
    /* Button mobile optimizations */
    .btn {
        min-height: 44px !important; /* iOS touch target minimum */
        touch-action: manipulation !important;
        padding: 8px 16px !important;
    }
    
    /* Input mobile optimizations */
    .form-control {
        min-height: 44px !important; /* iOS touch target minimum */
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 8px 12px !important;
    }
    
    input[type="number"] {
        font-size: 16px !important; /* Prevents zoom on iOS */
        min-height: 44px !important;
    }
    
    /* Focus states mobile */
    .form-control:focus,
    .btn:focus {
        outline: 2px solid var(--primary-color) !important;
        outline-offset: 2px !important;
    }
    
    /* Loading states mobile */
    .fade-in {
        animation-duration: 0.3s !important;
    }
    
    /* Responsive font sizes */
    body {
        font-size: 14px !important;
        line-height: 1.4 !important;
    }
    
    h1 {
        font-size: 1.5rem !important;
    }
    
    h2 {
        font-size: 1.3rem !important;
    }
    
    h3 {
        font-size: 1.2rem !important;
    }
    
    h4 {
        font-size: 1.1rem !important;
    }
    
    h5 {
        font-size: 1rem !important;
    }
    
    h6 {
        font-size: 0.9rem !important;
    }
    
    /* Container adjustments */
    .container {
        padding: 0 10px !important;
    }
    
    .main-content {
        padding: 10px !important;
    }
    
    /* Spacing adjustments */
    .mb-4 {
        margin-bottom: 1.5rem !important;
    }
    
    .mb-3 {
        margin-bottom: 1rem !important;
    }
    
    .mt-3 {
        margin-top: 1rem !important;
    }
    
    /* Cull alert mobile */
    .cull-alert-card {
        margin-bottom: 1rem !important;
    }
    
    .cull-alert-card .card-body {
        padding: 1rem !important;
    }
    
    .cull-option {
        padding: 12px !important;
        margin-bottom: 8px !important;
    }
    
    /* Conversion table mobile */
    .conversion-table-card .card-body {
        padding: 0.75rem !important;
    }
    
    .conversion-item {
        display: block !important;
        margin: 2px 0 !important;
        text-align: center !important;
        font-size: 0.8rem !important;
        padding: 4px !important;
    }
}
