body {
    padding-bottom: 80px;
    /*  Space for bottom nav */
}

/* Theme support */
body.theme-dark {
    background-color: #212529;
    color: #f8f9fa;
}

body.theme-dark .card {
    background-color: #343a40;
    border-color: #495057;
    color: #f8f9fa;
}

body.theme-dark .list-group-item {
    background-color: #343a40;
    border-color: #495057;
    color: #f8f9fa;
}

body.theme-dark .list-group-item-action:hover {
    background-color: #495057;
    color: #fff;
}

body.theme-dark .list-group-item-action:active {
    background-color: #1e2125;
    color: #fff;
}

body.theme-dark .list-group-item-action:focus {
    background-color: #495057;
    color: #fff;
}

body.theme-dark .card-header {
    background-color: #2c3136;
    border-color: #495057;
}

body.theme-dark .card-footer {
    background-color: #2c3136;
    border-color: #495057;
}

body.theme-dark .bottom-nav {
    background-color: #343a40;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

body.theme-dark .bottom-nav a {
    color: #adb5bd;
}

body.theme-dark .bottom-nav a.active {
    color: #0dcaf0;
}

body.theme-dark .form-control,
body.theme-dark .form-select {
    background-color: #495057;
    border-color: #6c757d;
    color: #f8f9fa;
}

body.theme-dark .table {
    color: #f8f9fa;
}

body.theme-dark .table th {
    background-color: #343a40;
    border-color: #495057;
}

body.theme-dark .text-muted {
    color: #adb5bd !important;
}

/* Avatar circle */
.avatar-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

body.theme-dark .avatar-circle {
    background-color: #495057;
    color: #adb5bd;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 10px 0;
}

.bottom-nav a {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px;
}

.bottom-nav a.active {
    color: #0d6efd;
}

.bottom-nav i {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.page {
    display: none;
}

.page.active {
    display: block !important;
    /* Add !important to override inline styles */
}

/* Mobile optimizations */
/* 15 and 15 */
.card {
    border-radius: 10px;
    margin-bottom: 5px;
}

.form-control,
.form-select {
    height: 45px;
    font-size: 16px;
    /* Prevents iOS zoom */
}

.btn,
.btn-primary {
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    max-width: 100%;
}

.btn {
    height: 45px;
    font-size: 16px;
}

.table {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .container {
        padding-top: 15px;
    }

    .card-header {
        padding: 12px 15px;
    }

    /*15*/
    .card-body {
        padding: 10px;
    }

    /* Mobile table optimizations */
    .table {
        font-size: 0.8rem;
    }

    .table th,
    .table td {
        padding: 8px 4px;
        white-space: nowrap;
    }

    /* Hide less important columns on mobile - only for catches table, not matrix tables */
    .table:not(.matrix-table) th:nth-child(4),
    /* Length */
    .table:not(.matrix-table) td:nth-child(4),
    .table:not(.matrix-table) th:nth-child(5),
    /* Weight */
    .table:not(.matrix-table) td:nth-child(5) {
        display: none;
    }

    /* Make method column smaller on mobile - only for catches table, not matrix tables */
    .table:not(.matrix-table) th:nth-child(6),
    .table:not(.matrix-table) td:nth-child(6) {
        max-width: 60px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Optimize icons column */
    .table th:last-child,
    .table td:last-child {
        width: 80px;
        text-align: center;
    }

    .table td:last-child i {
        font-size: 0.9rem;
        margin-right: 2px;
    }

    /* Mobile calendar optimizations */
    .calendar-day {
        min-height: 80px;
        padding: 4px;
    }

    .day-number {
        font-size: 0.9rem;
        margin-bottom: 2px;
    }

    .tournament-item {
        font-size: 0.6rem;
        padding: 1px 2px;
        margin-bottom: 1px;
    }

    .tournament-item i {
        font-size: 0.7rem;
    }

    .fisherman-catches {
        font-size: 0.6rem;
        padding: 1px 2px;
    }

    .catch-count {
        width: 12px;
        height: 12px;
        font-size: 0.5rem;
        min-width: 12px;
    }

    .calendar-header h4 {
        font-size: 1.1rem;
    }

    .calendar-header .btn {
        min-width: 60px;
        font-size: 0.8rem;
        padding: 4px 8px;
    }

    .calendar-day-header {
        padding: 6px 2px;
        font-size: 0.8rem;
    }

    /* Mobile filter form optimizations */
    .filter-form .row {
        margin: 0;
    }

    .filter-form .col-md-6,
    .filter-form .col-md-4,
    .filter-form .col-md-3 {
        padding: 0 5px;
        margin-bottom: 10px;
    }

    .filter-form .form-label {
        font-size: 0.9rem;
        margin-bottom: 4px;
    }

    .filter-form .form-control,
    .filter-form .form-select {
        font-size: 0.9rem;
        height: 40px;
    }

    /* Mobile view toggle buttons */
    .btn-group .btn {
        font-size: 0.8rem;
        padding: 6px 8px;
    }

    /* Mobile card optimizations */
    .card {
        margin-bottom: 8px;
    }

    .card-body {
        padding: 12px;
    }

    /* Mobile modal optimizations */
    .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }

    .modal-body {
        padding: 15px;
    }
}

/* Extra small mobile optimizations */
@media (max-width: 480px) {

    /* Even smaller table on very small screens */
    .table {
        font-size: 0.75rem;
    }

    .table th,
    .table td {
        padding: 6px 2px;
    }

    /* Hide method column on very small screens - only for catches table, not matrix tables */
    .table:not(.matrix-table) th:nth-child(6),
    .table:not(.matrix-table) td:nth-child(6) {
        display: none;
    }

    /* Make icons column even smaller */
    .table th:last-child,
    .table td:last-child {
        width: 60px;
    }

    .table td:last-child i {
        font-size: 0.8rem;
        margin-right: 1px;
    }

    /* Smaller calendar on very small screens */
    .calendar-day {
        min-height: 70px;
        padding: 2px;
    }

    .day-number {
        font-size: 0.8rem;
    }

    .tournament-item {
        font-size: 0.5rem;
        padding: 1px;
    }

    .fisherman-catches {
        font-size: 0.5rem;
        padding: 1px;
    }

    .catch-count {
        width: 10px;
        height: 10px;
        font-size: 0.4rem;
        min-width: 10px;
    }

    .calendar-header h4 {
        font-size: 1rem;
    }

    .calendar-header .btn {
        min-width: 50px;
        font-size: 0.7rem;
        padding: 3px 6px;
    }

    .calendar-day-header {
        padding: 4px 1px;
        font-size: 0.7rem;
    }

    /* Smaller filter form on very small screens */
    .filter-form .form-control,
    .filter-form .form-select {
        font-size: 0.8rem;
        height: 35px;
    }

    .filter-form .form-label {
        font-size: 0.8rem;
    }

    /* Smaller view toggle buttons */
    .btn-group .btn {
        font-size: 0.7rem;
        padding: 4px 6px;
    }
}

/* Calendar View Styles */
.calendar-container {
    max-width: 100%;
    margin: 0 auto;
}

.calendar-header {
    text-align: center;
    margin-bottom: 1rem;
}

.calendar-header .btn {
    min-width: 80px;
    font-size: 0.9rem;
}

.calendar-header h4 {
    font-size: 1.3rem;
    font-weight: 600;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background-color: #dee2e6;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

.calendar-day-header {
    background-color: #f8f9fa;
    padding: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: #495057;
}

.calendar-day {
    background-color: white;
    min-height: 120px;
    padding: 8px;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.calendar-day.empty {
    background-color: #f8f9fa;
}

.calendar-day.today {
    background-color: #e3f2fd;
    border: 2px solid #2196f3;
}

.day-number {
    font-weight: 600;
    font-size: 1.1rem;
    color: #212529;
    margin-bottom: 4px;
}

.tournament-section {
    margin-bottom: 4px;
}

.tournament-item {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 193, 7, 0.05));
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 4px;
    padding: 2px 4px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 2px;
}

.tournament-item:hover {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.25), rgba(255, 193, 7, 0.1));
}

.tournament-item i {
    font-size: 0.8rem;
}

.tournament-name {
    font-weight: 500;
    color: #b8860b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.tournament-indicator {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 0.8rem;
}

.catches-summary {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 60px;
    overflow-y: auto;
    overflow-x: hidden;
}

.catches-summary::-webkit-scrollbar {
    width: 4px;
}

.catches-summary::-webkit-scrollbar-track {
    background: transparent;
}

.catches-summary::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.catches-summary::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.fisherman-catches {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.15), rgba(0, 123, 255, 0.05));
    border-radius: 4px;
    padding: 2px 4px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fisherman-catches:hover {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.25), rgba(0, 123, 255, 0.1));
}

.fisherman-name {
    font-weight: 500;
    color: #0d6efd;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 60%;
}

.catch-count {
    background-color: #0d6efd;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 600;
    min-width: 16px;
}

/* Dark theme support for calendar */
body.theme-dark .calendar-container {
    color: #f8f9fa;
}

body.theme-dark .calendar-header h4 {
    color: #f8f9fa;
}

body.theme-dark .calendar-grid {
    background-color: #495057;
    border-color: #495057;
}

body.theme-dark .calendar-day-header {
    background-color: #343a40;
    color: #f8f9fa;
}

body.theme-dark .calendar-day {
    background-color: #495057;
    color: #f8f9fa;
}

body.theme-dark .calendar-day.empty {
    background-color: #343a40;
}

body.theme-dark .calendar-day.today {
    background-color: #1e3a5f;
    border-color: #0dcaf0;
}

body.theme-dark .day-number {
    color: #f8f9fa;
}

body.theme-dark .fisherman-catches {
    background: linear-gradient(135deg, rgba(13, 202, 240, 0.2), rgba(13, 202, 240, 0.05));
    color: #f8f9fa;
}

body.theme-dark .fisherman-catches:hover {
    background: linear-gradient(135deg, rgba(13, 202, 240, 0.3), rgba(13, 202, 240, 0.1));
}

body.theme-dark .fisherman-name {
    color: #0dcaf0;
}

body.theme-dark .catch-count {
    background-color: #0dcaf0;
    color: white;
}

body.theme-dark .day-catch-item {
    background-color: #495057;
    color: #f8f9fa;
    border-left-color: #0dcaf0;
}

body.theme-dark .day-catch-item:hover {
    background-color: #5a6268;
}

body.theme-dark .day-catch-item h6 {
    color: #f8f9fa;
}

body.theme-dark .day-catch-item .text-muted {
    color: #adb5bd;
}

body.theme-dark .tournament-item {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 193, 7, 0.05));
    border-color: rgba(255, 193, 7, 0.3);
}

body.theme-dark .tournament-item:hover {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.3), rgba(255, 193, 7, 0.1));
}

body.theme-dark .tournament-name {
    color: #ffc107;
}

body.theme-dark .catches-summary::-webkit-scrollbar-thumb {
    background: #666;
}

body.theme-dark .catches-summary::-webkit-scrollbar-thumb:hover {
    background: #888;
}

/* Day Catches Modal */
.day-catches-modal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

.day-catches-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.day-catch-item {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    border-left: 4px solid #007bff;
}

.day-catch-item:hover {
    background-color: #e9ecef;
}

.day-catches-list {
    max-height: 400px;
    overflow-y: auto;
}

.day-catch-item h6 {
    margin-bottom: 0.25rem;
    color: #212529;
}

.day-catch-item .text-muted {
    font-size: 0.85rem;
}

/* Additional styles */
.manage-menu .card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.manage-menu .card:active {
    transform: scale(0.98);
}

.manage-menu .card i {
    font-size: 2rem;
    /* Default size for all management icons */
    margin-bottom: 0.5rem;
}

/* Special styling for the fish icon when combined with water (only in bottom nav) */
.bottom-nav .position-relative i.fa-fish {
    font-size: 0.8rem;
    /* 50% size only for the bottom nav fish */
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #212529;
}

/* Manage menu fish with water styling */
.manage-menu .position-relative i.fa-fish {
    font-size: 2rem;
    /* Same size as other icons */
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #212529;
}

.manage-menu .card i.fa-water {
    color: #0d6efd;
    position: relative;
    margin-right: 0;
}

.bottom-nav i.fa-water {
    color: #0d6efd;
    position: relative;
    margin-right: 0;
    font-size: 1.5rem;
    /* Keep bottom nav water icon smaller */
}

.back-button {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 100;
}





.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    pointer-events: none;
    /* Allow clicking through toasts */
}

.toast {
    position: relative;
    margin-bottom: 8px;
    min-width: 220px;
    max-width: 350px;
    transition: all 0.3s ease;
    opacity: 0;
    /* Start invisible */
    transform: translateX(100%);
    /* Start from right */
    background: rgba(255, 255, 255, 0.97);
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e0e0;
    padding: 12px 18px;
    pointer-events: auto;
    /* Re-enable clicking for each toast */
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast.hiding {
    opacity: 0;
    transform: translateX(100%);
}

.toast.success {
    border-left: 4px solid #28a745;
    background: linear-gradient(to right, rgba(40, 167, 69, 0.15), rgba(255, 255, 255, 0.98));
}

.toast.error {
    border-left: 4px solid #dc3545;
    background: linear-gradient(to right, rgba(220, 53, 69, 0.15), rgba(255, 255, 255, 0.98));
}

.toast.warning {
    border-left: 4px solid #ffc107;
    background: linear-gradient(to right, rgba(255, 193, 7, 0.15), rgba(255, 255, 255, 0.98));
}

.toast.info {
    border-left: 4px solid #17a2b8;
    background: linear-gradient(to right, rgba(23, 162, 184, 0.15), rgba(255, 255, 255, 0.98));
}

.toast .toast-body {
    background: transparent;
    color: #212529;
    font-size: 1rem;
    font-weight: 500;
    padding: 12px 18px;
}

/* Dark theme support */
.theme-dark .toast {
    background: rgba(33, 37, 41, 0.97);
    border: 1px solid #444;
}

.theme-dark .toast.success {
    background: linear-gradient(to right, rgba(40, 167, 69, 0.25), rgba(33, 37, 41, 0.98));
}

.theme-dark .toast.error {
    background: linear-gradient(to right, rgba(220, 53, 69, 0.25), rgba(33, 37, 41, 0.98));
}

.theme-dark .toast.warning {
    background: linear-gradient(to right, rgba(255, 193, 7, 0.25), rgba(33, 37, 41, 0.98));
}

.theme-dark .toast.info {
    background: linear-gradient(to right, rgba(23, 162, 184, 0.25), rgba(33, 37, 41, 0.98));
}

.theme-dark .toast .toast-body {
    color: #f8f9fa;
}

#imagePreview {
    max-width: 100%;
    margin-top: 10px;
}

#imagePreview img {
    max-width: 200px;
    max-height: 200px;
    object-fit: contain;
    border-radius: 8px;
}

.location-feedback {
    font-size: 0.875rem;
    margin-top: 5px;
    color: #6c757d;
}

/* Table styles */
.table-responsive {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.table td {
    vertical-align: middle;
}

.table tr {
    cursor: pointer;
    transition: background-color 0.2s;
}

.table tr:hover {
    background-color: #f8f9fa;
}

.table .actions {
    white-space: nowrap;
    width: 1%;
}

.catch-row:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Clickable Cards */
.cursor-pointer {
    cursor: pointer;
}

.hover-shadow {
    transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.hover-shadow:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Add additional dark mode styles */
body.theme-dark .table tbody tr:hover {
    background-color: #495057;
}

body.theme-dark .table-hover tbody tr:hover {
    background-color: #495057;
}

body.theme-dark .badge.bg-info {
    background-color: #0dcaf0 !important;
}

body.theme-dark .badge.bg-success {
    background-color: #198754 !important;
}

body.theme-dark .badge.bg-primary {
    background-color: #0d6efd !important;
}

body.theme-dark .badge.bg-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

body.theme-dark .badge.bg-danger {
    background-color: #dc3545 !important;
}

body.theme-dark .badge.bg-secondary {
    background-color: #6c757d !important;
}

body.theme-dark .btn-outline-danger {
    color: #ff6b6b;
    border-color: #ff6b6b;
}

body.theme-dark .btn-outline-danger:hover {
    background-color: #ff6b6b;
    color: #f8f9fa;
}

body.theme-dark .btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

body.theme-dark .btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

body.theme-dark .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

body.theme-dark .modal-content {
    background-color: #343a40;
    border-color: #495057;
}

body.theme-dark .modal-header {
    border-color: #495057;
}

body.theme-dark .modal-footer {
    border-color: #495057;
}

/* Adjust text color for better contrast in dark mode */
body.theme-dark .card-text,
body.theme-dark .card-title,
body.theme-dark .card-subtitle {
    color: #f8f9fa;
}

body.theme-dark .text-dark {
    color: #f8f9fa !important;
}

body.theme-dark .text-body {
    color: #f8f9fa !important;
}

/* Font size settings */
body.font-small {
    font-size: 0.85rem;
}

body.font-medium {
    font-size: 1rem;
}

body.font-large {
    font-size: 1.15rem;
}

body.font-small .table {
    font-size: 0.8rem;
}

body.font-large .table {
    font-size: 1rem;
}

body.font-small .card-header h5 {
    font-size: 1rem;
}

body.font-large .card-header h5 {
    font-size: 1.3rem;
}

body.font-large .btn,
body.font-large .form-control,
body.font-large .form-select {
    font-size: 1.1rem;
}

body.font-small .btn,
body.font-small .form-control,
body.font-small .form-select {
    font-size: 0.9rem;
}

/* Settings tabs */
.settings-nav .list-group-item.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

body.theme-dark .settings-nav .list-group-item.active {
    background-color: #0dcaf0;
    border-color: #0dcaf0;
    color: #212529;
}

/* Location button spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

.location-button {
    min-width: 200px;
    text-align: left;
    position: relative;
}

.location-button .spinner-border {
    margin-right: 0.5rem;
}

.location-button.disabled {
    cursor: not-allowed;
}

/* Make sure flex alignment works in the button */
.btn .d-flex {
    display: inline-flex !important;
    align-items: center;
}

.text-success {
    color: #198754 !important;
}

.text-primary {
    color: #0d6efd !important;
}

.text-info {
    color: #0dcaf0 !important;
}

.text-warning {
    color: #ffc107 !important;
}

.fw-bold {
    font-weight: bold !important;
}

.badge.align-middle {
    vertical-align: middle;
    font-size: 0.85em;
    padding: 0.35em 0.5em;
    border-radius: 0.7em;
    display: inline-flex;
    align-items: center;
    gap: 0.25em;
    line-height: 1;
}

.badge-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 2.2em;
    gap: 0.25em;
}

.badge-fixed {
    width: 3.2em;
    height: 1.6em;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1em;
    padding: 0;
    border-radius: 0.8em;
}

.location-buttons-row {
    display: flex;
    gap: 0.5em;
}

.location-buttons-row .btn {
    flex: 1 1 0;
    max-width: 220px;
    min-width: 0;
}

/* Utility for max-width cards (e.g. forms and participant tables) */
.card-max-width {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Dark theme table support */
body.theme-dark .table,
body.theme-dark .table-responsive {
    background-color: #343a40;
    color: #f8f9fa;
}

body.theme-dark .table th,
body.theme-dark .table thead th {
    background-color: #23272b;
    color: #f8f9fa;
    border-color: #495057;
}

body.theme-dark .table td {
    background-color: #343a40;
    color: #f8f9fa;
    border-color: #495057;
}

body.theme-dark .table-striped>tbody>tr:nth-of-type(odd)>* {
    background-color: #2c3136;
}

body.theme-dark .table-hover tbody tr:hover>* {
    background-color: #495057;
    color: #fff;
}

/* Flip card styles */
.flip-card {
    background-color: transparent;
    width: 100%;
    height: 100px;
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.flip-card-front {
    background-color: #fff;
}

.flip-card-back {
    background-color: #0d6efd;
    color: white;
    transform: rotateY(180deg);
}

body.theme-dark .flip-card-front {
    background-color: #495057;
    color: #f8f9fa;
}

body.theme-dark .flip-card-back {
    background-color: #0d6efd;
    color: #fff;
}

.flip-card .card-body {
    position: relative;
    min-height: 100px;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.flip-card .card-title {
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: bold;
}

.flip-card .card-text {
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.flip-card .card-body .fa-repeat {
    position: absolute;
    bottom: 5px;
    right: 5px;
    color: rgba(0, 0, 0, 0.6);
    font-size: 0.8rem;
}

/* Flip cards container */
.flip-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

/* Select buttons spacing */
.select-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.select-buttons .btn {
    height: 20px;
    width: 50px;
    padding: 0;
    font-size: 0.8rem;
}

/* Mobile-specific styles for select buttons */
@media (max-width: 768px) {
    .select-buttons .btn {
        min-height: 44px;
        /* Minimum touch target size */
        width: auto;
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
        margin: 2px 0;
    }

    .select-buttons {
        gap: 8px;
        margin-top: 8px;
    }
}

@media (max-width: 480px) {
    .select-buttons .btn {
        min-height: 48px;
        /* Even larger touch target for small screens */
        width: auto;
        padding: 0.75rem 1rem;
        font-size: 1rem;
        margin: 3px 0;
    }

    .select-buttons {
        gap: 10px;
        margin-top: 10px;
    }
}

.mb-2 {
    margin-top: .5rem !important;
}

.color-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px;
}

.color-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.color-options {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    max-width: 100%;
}

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

.color-grid {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 5px;
}

@media (max-width: 768px) {
    .color-options {
        grid-template-columns: repeat(6, 1fr);
        gap: 6px;
    }

    .color-grid {
        max-height: 60vh;
    }

    .color-option small {
        font-size: 0.6rem !important;
    }
}

/* Color picker modal specific styling */
#colorPickerModal .modal-dialog {
    max-width: 600px;
    width: 95%;
}

#colorPickerModal .modal-body {
    padding: 1.5rem;
}

@media (max-width: 576px) {
    #colorPickerModal .modal-dialog {
        max-width: 95%;
        margin: 0.5rem auto;
    }

    #colorPickerModal .modal-body {
        padding: 1rem;
    }
}

.color-group-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #dee2e6;
}

body.theme-dark .color-group-title {
    color: #adb5bd;
    border-bottom-color: #495057;
}

.color-option {
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s;
    align-content: end;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.color-option small {
    font-size: 0.65rem !important;
    line-height: 1.1;
    text-align: center;
    word-break: break-word;
    padding: 2px;
}

.color-option clear-color span {
    padding: 10px;
    font-size: 1.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-picker-btn {
    position: relative;
    text-align: center;
    width: 50px;
    height: 50px;

}

.color-preview {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    display: inline-block;
}

#colorChart {
    width: 100% !important;
    height: 100% !important;
}

.chart-container {
    position: relative;
    height: 400px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.chart-container>div {
    width: 100% !important;
    height: 100% !important;
}

/* Chart section max width */
.row.justify-content-center {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Container max-width */
.container-fluid {
    max-width: 1200px;
    margin: 0 auto;
    /* padding: 0 15px; SLIM PAGE*/
}

/* Form max widths */
form[style*="max-width"] {
    max-width: 500px !important;
}

/* Simple weather icon styling */
.wi {
    font-family: 'weathericons';
    font-style: normal;
    font-weight: 400;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 1.2em;
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    text-align: center;
    vertical-align: middle;
}

/* Matrix table styling */
.matrix-table {
    line-height: 1 !important;
}

.matrix-table th,
.matrix-table td {
    padding: 1px !important;
    margin: 0 !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    border: 1px solid #dee2e6 !important;
}

.matrix-table .matrix-cell {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    padding: 1px !important;
    margin: 0 !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    position: relative;
}

.matrix-table .species-header {
    writing-mode: vertical-lr;
    text-orientation: mixed;
    width: 40px !important;
    height: 40px !important;
    padding: 1px !important;
    font-size: 0.7rem !important;
    line-height: 1 !important;
}

.matrix-table th:first-child,
.matrix-table td:first-child {
    writing-mode: horizontal-tb !important;
    width: 80px !important;
    min-width: 80px !important;
    max-width: 80px !important;
    height: 40px !important;
    padding: 1px 4px !important;
    font-size: 0.8rem !important;
    line-height: 1 !important;
    text-align: left !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
}


/* Weather Picker Modal */
#weatherPickerModal .modal-dialog {
    max-width: 90vw;
    max-height: 90vh;
}

#weatherPickerModal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

.weather-option {
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.weather-option:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.weather-option.selected {
    background-color: #e3f2fd;
    border-color: #2196f3;
}

.weather-option .weather-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.weather-option .weather-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
}

.weather-option .weather-desc {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.25rem;
}

/* Button flash effect for weather clear button */
.btn-flash-success {
    background-color: #198754 !important;
    border-color: #198754 !important;
    color: white !important;
}

/* Override hover states during flash */
.btn-flash-success:hover,
.btn-flash-success:focus,
.btn-flash-success:active {
    background-color: #198754 !important;
    border-color: #198754 !important;
    color: white !important;
}

/* Ensure this works in both light and dark themes */
body.theme-dark .btn-flash-success,
body.theme-dark .btn-flash-success:hover,
body.theme-dark .btn-flash-success:focus,
body.theme-dark .btn-flash-success:active {
    background-color: #198754 !important;
    border-color: #198754 !important;
    color: white !important;
}

/* Waypoints Icon Picker Styles */
.icon-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.icon-picker-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #fff;
}

.icon-picker-option:hover {
    border-color: #0d6efd;
    background-color: #f8f9fa;
}

.icon-picker-option.selected {
    border-color: #0d6efd;
    background-color: #e7f1ff;
}

.icon-picker-option .icon-example {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: #495057;
}

.icon-picker-option .icon-name {
    font-size: 0.8rem;
    text-align: center;
    color: #6c757d;
    font-weight: 500;
}

.icon-picker-option.selected .icon-example {
    color: #0d6efd;
}

.icon-picker-option.selected .icon-name {
    color: #0d6efd;
}

/* Dark theme support for icon picker */
body.theme-dark .icon-picker-option {
    background-color: #343a40;
    border-color: #495057;
}

body.theme-dark .icon-picker-option:hover {
    border-color: #0dcaf0;
    background-color: #495057;
}

body.theme-dark .icon-picker-option.selected {
    border-color: #0dcaf0;
    background-color: #1e3d59;
}

body.theme-dark .icon-picker-option .icon-example {
    color: #adb5bd;
}

body.theme-dark .icon-picker-option .icon-name {
    color: #6c757d;
}

body.theme-dark .icon-picker-option.selected .icon-example {
    color: #0dcaf0;
}

body.theme-dark .icon-picker-option.selected .icon-name {
    color: #0dcaf0;
}

/* Image upload styles */
.image-upload-container {
    position: relative;
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.image-upload-container:hover {
    border-color: #666;
}

.image-preview {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.remove-image {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* Section headers styling - makes h6 elements look like form labels */
.form-label.section-header {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #212529;
}

body.theme-dark .form-label.section-header {
    color: #f8f9fa;
}

/* Fix label alignment when text wraps on mobile */
.form-label.small {
    min-height: 2.5rem;
    display: flex;
    align-items: flex-end;
    line-height: 1.3;
    padding-bottom: 0.25rem;
}

@media (max-width: 576px) {
    .form-label.small {
        min-height: 3rem;
        font-size: 0.875rem;
    }
}

/* View Catch Page Styles */
.view-catch-container {
    max-width: 100%;
    margin: 0 auto;
}

/* Personal Best styling for entire catch view page */
.view-catch-container.personal-best {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(255, 215, 0, 0.02)) !important;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.2) !important;
}

body.theme-dark .view-catch-container.personal-best {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 215, 0, 0.03)) !important;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3) !important;
}

.view-catch-container.personal-best:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 215, 0, 0.04)) !important;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.3) !important;
}

body.theme-dark .view-catch-container.personal-best:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12), rgba(255, 215, 0, 0.05)) !important;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.4) !important;
}

/* Personal Best styling for hero image and other cards on catch page */
.view-catch-container.personal-best .hero-image-container {
    border: 2px solid rgba(255, 215, 0, 0.6) !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3) !important;
}

.view-catch-container.personal-best .weather-card,
.view-catch-container.personal-best .location-card,
.view-catch-container.personal-best .notes-card,
.view-catch-container.personal-best .catch-info-card,
.view-catch-container.personal-best .no-image-placeholder {
    border: 2px solid rgba(255, 215, 0, 0.4) !important;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2) !important;
}

body.theme-dark .view-catch-container.personal-best .weather-card,
body.theme-dark .view-catch-container.personal-best .location-card,
body.theme-dark .view-catch-container.personal-best .notes-card,
body.theme-dark .view-catch-container.personal-best .catch-info-card,
body.theme-dark .view-catch-container.personal-best .no-image-placeholder {
    border: 2px solid rgba(255, 215, 0, 0.5) !important;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3) !important;
}

.hero-image-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 20px;
}

.catch-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.no-image-placeholder {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.15), rgba(0, 123, 255, 0.05));
    border-radius: 16px;
    padding: 60px 20px;
    text-align: center;
    color: #333;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Highlighted no-image-placeholder styling - more specific to override original background */
.no-image-placeholder.highlighted-catch,
div.no-image-placeholder.highlighted-catch {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.15), rgba(0, 123, 255, 0.05)) !important;
    transition: all 0.3s ease;
}

body.theme-dark .no-image-placeholder {
    background: linear-gradient(135deg, rgba(13, 202, 240, 0.2), rgba(13, 202, 240, 0.05));
    color: #f8f9fa;
}

body.theme-dark .no-image-placeholder.highlighted-catch,
body.theme-dark div.no-image-placeholder.highlighted-catch {
    background: linear-gradient(135deg, rgba(13, 202, 240, 0.2), rgba(13, 202, 240, 0.05)) !important;
}

.catch-info-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Personal Best styling for catch info card */
.catch-info-card.personal-best {
    border: 3px solid #ffd700 !important;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4) !important;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.08)) !important;
}

body.theme-dark .catch-info-card.personal-best {
    border: 3px solid #ffd700 !important;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6) !important;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1)) !important;
}

.catch-info-card.personal-best:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 215, 0, 0.15)) !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6) !important;
}

body.theme-dark .catch-info-card.personal-best:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 215, 0, 0.15)) !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8) !important;
}

.catch-header {
    margin-bottom: 20px;
}

.catch-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

.fisherman-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #7f8c8d;
    font-size: 0.95rem;
}

.catch-metrics {
    margin-bottom: 24px;
}

.metrics-row {
    display: flex;
    gap: 16px;
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    background: #f8f9fa;
    padding: 16px;
    border-radius: 12px;
    border-left: 4px solid #0d6efd;
}

.metric-icon {
    width: 40px;
    height: 40px;
    background: #0d6efd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.metric-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
}

.metric-label {
    font-size: 0.85rem;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.catch-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #ecf0f1;
}

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

.detail-item i {
    width: 20px;
    color: #0d6efd;
    font-size: 1rem;
}

.tournament-badge {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    margin-top: 8px;
}

.lure-colors-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
}

.colors-display {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.weather-card,
.location-card,
.notes-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.weather-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.weather-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #3498db;
}

.weather-icon {
    width: 36px;
    height: 36px;
    background: #3498db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.weather-main {
    font-weight: 600;
    color: #2c3e50;
}

.weather-desc {
    font-size: 0.8rem;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.map-container {
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
}

/* Ensure map containers have proper dimensions */
#catches-map,
#tournament-map,
#waypointDisplayMap,
#catch-map {
    width: 100% !important;
    height: calc(100vh - 200px) !important;
    min-height: 300px !important;
    max-height: 1000px !important;
    position: relative !important;
    display: block !important;
    visibility: visible !important;
}

/* Ensure map containers are properly sized when their parent is visible */
.catch-view:not([style*="display: none"]) #catches-map,
.catch-view:not([style*="display: none"]) #tournament-map {
    display: block !important;
    visibility: visible !important;
}

/* Map marker highlighting styles */
.highlighted-marker div[style*="background-color: #0d6efd"] {
    animation: markerPulse 1.5s ease-in-out infinite !important;
    box-shadow: 0 0 15px rgba(255, 255, 0, 1), 0 0 30px rgba(255, 255, 0, 0.8), 0 0 45px rgba(255, 255, 0, 0.6) !important;
    border: 3px solid #ffff00 !important;
    transform: scale(1.2) !important;
}

.highlighted-cluster div[style*="background: linear-gradient(135deg, #0d6efd"] {
    animation: clusterPulse 1.5s ease-in-out infinite !important;
    box-shadow: 0 0 20px rgba(255, 255, 0, 1), 0 0 40px rgba(255, 255, 0, 0.8), 0 0 60px rgba(255, 255, 0, 0.6) !important;
    border: 4px solid #ffff00 !important;
    transform: scale(1.3) !important;
}

@keyframes markerPulse {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(255, 255, 0, 1), 0 0 30px rgba(255, 255, 0, 0.8), 0 0 45px rgba(255, 255, 0, 0.6) !important;
        transform: scale(1.2) !important;
    }

    50% {
        box-shadow: 0 0 25px rgba(255, 255, 0, 1), 0 0 50px rgba(255, 255, 0, 0.9), 0 0 75px rgba(255, 255, 0, 0.7) !important;
        transform: scale(1.3) !important;
    }
}

@keyframes clusterPulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(255, 255, 0, 1), 0 0 40px rgba(255, 255, 0, 0.8), 0 0 60px rgba(255, 255, 0, 0.6) !important;
        transform: scale(1.3) !important;
    }

    50% {
        box-shadow: 0 0 35px rgba(255, 255, 0, 1), 0 0 70px rgba(255, 255, 0, 0.9), 0 0 105px rgba(255, 255, 0, 0.7) !important;
        transform: scale(1.4) !important;
    }
}

.notes-content {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid #27ae60;
    font-style: italic;
    color: #2c3e50;
}

@media (max-width: 768px) {
    .metrics-row {
        flex-direction: column;
    }

    .weather-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .catch-title {
        font-size: 1.5rem;
    }
}

/* Dark theme support for view catch page */
body.theme-dark .catch-info-card,
body.theme-dark .weather-card,
body.theme-dark .location-card,
body.theme-dark .notes-card {
    background: #343a40;
    color: #f8f9fa;
}

body.theme-dark .catch-title {
    color: #f8f9fa;
}

body.theme-dark .metric-item {
    background: #495057;
    border-left-color: #0dcaf0;
}

body.theme-dark .metric-icon {
    background: #0dcaf0;
}

body.theme-dark .metric-value {
    color: #f8f9fa;
}

body.theme-dark .metric-label {
    color: #adb5bd;
}

body.theme-dark .detail-item {
    border-bottom-color: #495057;
}

body.theme-dark .detail-item i {
    color: #0dcaf0;
}

body.theme-dark .lure-colors-section {
    border-top-color: #495057;
}

body.theme-dark .weather-item {
    background: #495057;
    border-left-color: #3498db;
}

body.theme-dark .weather-main {
    color: #f8f9fa;
}

body.theme-dark .weather-desc {
    color: #adb5bd;
}

body.theme-dark .notes-content {
    background: #495057;
    color: #f8f9fa;
}

/* Generic progress modal styling */
.progress-modal-card {
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Watch interface progress modal */
.progress-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.progress-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin: 1rem;
    max-width: 90vw;
    text-align: center;
}

/* Removed custom progress bar CSS - now using Bootstrap */

/* Modal variants */
.progress-modal-card.compact {
    max-width: 400px;
}

.progress-modal-card.wide {
    max-width: 600px;
}

.progress-modal-card.full-width {
    max-width: 800px;
}

/* View toggle buttons for statistics */
.catch-view {
    transition: opacity 0.3s ease-in-out;
}

.btn-group .btn {
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
}

.btn-group .btn:last-child {
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}

.btn-group .btn.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

.btn-group .btn:not(.active) {
    background-color: transparent;
    border-color: #0d6efd;
    color: #0d6efd;
}

.btn-group .btn:not(.active):hover {
    background-color: #e7f1ff;
    color: #0d6efd;
}

body.theme-dark .btn-group .btn:not(.active) {
    background-color: transparent;
    border-color: #0d6efd;
    color: #0d6efd;
}

body.theme-dark .btn-group .btn:not(.active):hover {
    background-color: #1a1a1a;
    color: #0d6efd;
}

/* Highlighted catch card styling - using background glow only */
.highlighted-catch {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.15), rgba(0, 123, 255, 0.05)) !important;
    transition: all 0.3s ease;
}

body.theme-dark .highlighted-catch {
    background: linear-gradient(135deg, rgba(13, 202, 240, 0.2), rgba(13, 202, 240, 0.05)) !important;
}

/* Highlighted table row styling - using same gradient as cards */
tr.highlighted-catch,
table tbody tr.highlighted-catch,
.table tbody tr.highlighted-catch,
#tableView table tbody tr.highlighted-catch,
#tableView .table tbody tr.highlighted-catch,
.table-responsive table tbody tr.highlighted-catch,
.table-hover tbody tr.highlighted-catch,
.table-striped tbody tr.highlighted-catch {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.15), rgba(0, 123, 255, 0.05)) !important;
}

/* Target table cells within highlighted rows - remove individual cell backgrounds */
tr.highlighted-catch td,
table tbody tr.highlighted-catch td,
.table tbody tr.highlighted-catch td,
#tableView table tbody tr.highlighted-catch td,
#tableView .table tbody tr.highlighted-catch td,
.table-responsive table tbody tr.highlighted-catch td,
.table-hover tbody tr.highlighted-catch td,
.table-striped tbody tr.highlighted-catch td {
    background: transparent !important;
}

/* Override hover states for highlighted rows */
tr.highlighted-catch:hover,
table tbody tr.highlighted-catch:hover,
.table tbody tr.highlighted-catch:hover,
#tableView table tbody tr.highlighted-catch:hover,
#tableView .table tbody tr.highlighted-catch:hover,
.table-responsive table tbody tr.highlighted-catch:hover,
.table-hover tbody tr.highlighted-catch:hover,
.table-striped tbody tr.highlighted-catch:hover {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.25), rgba(0, 123, 255, 0.1)) !important;
}

tr.highlighted-catch:hover td,
table tbody tr.highlighted-catch:hover td,
.table tbody tr.highlighted-catch:hover td,
#tableView table tbody tr.highlighted-catch:hover td,
#tableView .table tbody tr.highlighted-catch:hover td,
.table-responsive table tbody tr.highlighted-catch:hover td,
.table-hover tbody tr.highlighted-catch:hover td,
.table-striped tbody tr.highlighted-catch:hover td {
    background: transparent !important;
}

body.theme-dark tr.highlighted-catch,
body.theme-dark table tbody tr.highlighted-catch,
body.theme-dark .table tbody tr.highlighted-catch,
body.theme-dark #tableView table tbody tr.highlighted-catch,
body.theme-dark #tableView .table tbody tr.highlighted-catch,
body.theme-dark .table-responsive table tbody tr.highlighted-catch,
body.theme-dark .table-hover tbody tr.highlighted-catch,
body.theme-dark .table-striped tbody tr.highlighted-catch {
    background: linear-gradient(135deg, rgba(13, 202, 240, 0.2), rgba(13, 202, 240, 0.05)) !important;
}

body.theme-dark tr.highlighted-catch td,
body.theme-dark table tbody tr.highlighted-catch td,
body.theme-dark .table tbody tr.highlighted-catch td,
body.theme-dark #tableView table tbody tr.highlighted-catch td,
body.theme-dark #tableView .table tbody tr.highlighted-catch td,
body.theme-dark .table-responsive table tbody tr.highlighted-catch td,
body.theme-dark .table-hover tbody tr.highlighted-catch td,
body.theme-dark .table-striped tbody tr.highlighted-catch td {
    background: transparent !important;
}

body.theme-dark tr.highlighted-catch:hover,
body.theme-dark table tbody tr.highlighted-catch:hover,
body.theme-dark .table tbody tr.highlighted-catch:hover,
body.theme-dark #tableView table tbody tr.highlighted-catch:hover,
body.theme-dark #tableView .table tbody tr.highlighted-catch:hover,
body.theme-dark .table-responsive table tbody tr.highlighted-catch:hover,
body.theme-dark .table-hover tbody tr.highlighted-catch:hover,
body.theme-dark .table-striped tbody tr.highlighted-catch:hover {
    background: linear-gradient(135deg, rgba(13, 202, 240, 0.3), rgba(13, 202, 240, 0.1)) !important;
}

body.theme-dark tr.highlighted-catch:hover td,
body.theme-dark table tbody tr.highlighted-catch:hover td,
body.theme-dark .table tbody tr.highlighted-catch:hover td,
body.theme-dark #tableView table tbody tr.highlighted-catch:hover td,
body.theme-dark #tableView .table tbody tr.highlighted-catch:hover td,
body.theme-dark .table-responsive table tbody tr.highlighted-catch:hover td,
body.theme-dark .table-hover tbody tr.highlighted-catch:hover td,
body.theme-dark .table-striped tbody tr.highlighted-catch:hover td {
    background: transparent !important;
}

/* Personal Best styling - Maximum specificity to override highlighted-catch */
.card.personal-best,
div.personal-best,
.card.highlighted-catch.personal-best,
div.highlighted-catch.personal-best {
    border: 3px solid #ffd700 !important;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4) !important;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.08)) !important;
    position: relative !important;
}



body.theme-dark .card.personal-best,
body.theme-dark div.personal-best,
body.theme-dark .card.highlighted-catch.personal-best,
body.theme-dark div.highlighted-catch.personal-best {
    border: 3px solid #ffd700 !important;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6) !important;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1)) !important;
}

/* Personal Best for table rows - Maximum specificity */
table tbody tr.personal-best,
.table tbody tr.personal-best,
#tableView table tbody tr.personal-best,
#tableView .table tbody tr.personal-best,
.table-responsive table tbody tr.personal-best,
.table-hover tbody tr.personal-best,
.table-striped tbody tr.personal-best,
table tbody tr.highlighted-catch.personal-best,
.table tbody tr.highlighted-catch.personal-best,
#tableView table tbody tr.highlighted-catch.personal-best,
#tableView .table tbody tr.highlighted-catch.personal-best,
.table-responsive table tbody tr.highlighted-catch.personal-best,
.table-hover tbody tr.highlighted-catch.personal-best,
.table-striped tbody tr.highlighted-catch.personal-best {
    border: 3px solid #ffd700 !important;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05)) !important;
}

table tbody tr.personal-best td,
table tbody tr.personal-best th,
.table tbody tr.personal-best td,
.table tbody tr.personal-best th,
#tableView table tbody tr.personal-best td,
#tableView table tbody tr.personal-best th,
#tableView .table tbody tr.personal-best td,
#tableView .table tbody tr.personal-best th,
.table-responsive table tbody tr.personal-best td,
.table-responsive table tbody tr.personal-best th,
.table-hover tbody tr.personal-best td,
.table-hover tbody tr.personal-best th,
.table-striped tbody tr.personal-best td,
.table-striped tbody tr.personal-best th {
    border-color: #ffd700 !important;
    background: transparent !important;
}

body.theme-dark table tbody tr.personal-best,
body.theme-dark .table tbody tr.personal-best,
body.theme-dark #tableView table tbody tr.personal-best,
body.theme-dark #tableView .table tbody tr.personal-best,
body.theme-dark .table-responsive table tbody tr.personal-best,
body.theme-dark .table-hover tbody tr.personal-best,
body.theme-dark .table-striped tbody tr.personal-best,
body.theme-dark table tbody tr.highlighted-catch.personal-best,
body.theme-dark .table tbody tr.highlighted-catch.personal-best,
body.theme-dark #tableView table tbody tr.highlighted-catch.personal-best,
body.theme-dark #tableView .table tbody tr.highlighted-catch.personal-best,
body.theme-dark .table-responsive table tbody tr.highlighted-catch.personal-best,
body.theme-dark .table-hover tbody tr.highlighted-catch.personal-best,
body.theme-dark .table-striped tbody tr.highlighted-catch.personal-best {
    border: 3px solid #ffd700 !important;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.08)) !important;
}

body.theme-dark table tbody tr.personal-best td,
body.theme-dark table tbody tr.personal-best th,
body.theme-dark .table tbody tr.personal-best td,
body.theme-dark .table tbody tr.personal-best th,
body.theme-dark #tableView table tbody tr.personal-best td,
body.theme-dark #tableView table tbody tr.personal-best th,
body.theme-dark #tableView .table tbody tr.personal-best td,
body.theme-dark #tableView .table tbody tr.personal-best th,
body.theme-dark .table-responsive table tbody tr.personal-best td,
body.theme-dark .table-responsive table tbody tr.personal-best th,
body.theme-dark .table-hover tbody tr.personal-best td,
body.theme-dark .table-hover tbody tr.personal-best th,
body.theme-dark .table-striped tbody tr.personal-best td,
body.theme-dark .table-striped tbody tr.personal-best th {
    border-color: #ffd700 !important;
    background: transparent !important;
}

/* Personal Best hover states */
.card.personal-best:hover,
div.personal-best:hover,
.card.highlighted-catch.personal-best:hover,
div.highlighted-catch.personal-best:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 215, 0, 0.15)) !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6) !important;
}

body.theme-dark .card.personal-best:hover,
body.theme-dark div.personal-best:hover,
body.theme-dark .card.highlighted-catch.personal-best:hover,
body.theme-dark div.highlighted-catch.personal-best:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 215, 0, 0.15)) !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8) !important;
}

table tbody tr.personal-best:hover,
.table tbody tr.personal-best:hover,
#tableView table tbody tr.personal-best:hover,
#tableView .table tbody tr.personal-best:hover,
.table-responsive table tbody tr.personal-best:hover,
.table-hover tbody tr.personal-best:hover,
.table-striped tbody tr.personal-best:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1)) !important;
    border-color: #ffd700 !important;
}

body.theme-dark table tbody tr.personal-best:hover,
body.theme-dark .table tbody tr.personal-best:hover,
body.theme-dark #tableView table tbody tr.personal-best:hover,
body.theme-dark #tableView .table tbody tr.personal-best:hover,
body.theme-dark .table-responsive table tbody tr.personal-best:hover,
body.theme-dark .table-hover tbody tr.personal-best:hover,
body.theme-dark .table-striped tbody tr.personal-best:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 215, 0, 0.12)) !important;
    border-color: #ffd700 !important;
}

/* Offline indicators - Single unified class for all offline items */
.card.offline {
    border: 2px solid #dc3545 !important;
    background-color: rgba(220, 53, 69, 0.05) !important;
    border-left: 4px solid #dc3545 !important;
}

body.theme-dark .card.offline {
    border: 2px solid #dc3545 !important;
    background-color: rgba(220, 53, 69, 0.1) !important;
    border-left: 4px solid #dc3545 !important;
}

.card.offline:hover {
    border-color: #dc3545 !important;
    background-color: rgba(220, 53, 69, 0.1) !important;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.3) !important;
}

body.theme-dark .card.offline:hover {
    border-color: #dc3545 !important;
    background-color: rgba(220, 53, 69, 0.15) !important;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.4) !important;
}

/* Additional specificity for catch cards that might have other classes */
.card.highlighted-catch.offline,
.card.personal-best.offline {
    border: 2px solid #dc3545 !important;
    background-color: rgba(220, 53, 69, 0.05) !important;
    border-left: 4px solid #dc3545 !important;
}

body.theme-dark .card.highlighted-catch.offline,
body.theme-dark .card.personal-best.offline {
    border: 2px solid #dc3545 !important;
    background-color: rgba(220, 53, 69, 0.1) !important;
    border-left: 4px solid #dc3545 !important;
}

/* Offline sync indicator styles */
.offline-sync-indicator {
    position: fixed;
    top: 10px;
    right: 10px;
    background: #ffc107;
    color: #000;
    padding: 8px 12px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    font-size: 14px;
    max-width: 300px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.offline-sync-indicator:hover {
    background: #ffb300;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.offline-sync-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.offline-sync-text {
    font-weight: 500;
}

.offline-sync-indicator .btn {
    padding: 2px 8px;
    font-size: 12px;
}

/* Offline sync details modal */
.offline-sync-details {
    max-height: 300px;
    overflow-y: auto;
}

.offline-sync-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 4px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #ffc107;
}

.offline-sync-item-name {
    font-weight: 500;
    color: #495057;
}

.offline-sync-item-count {
    background: #ffc107;
    color: #000;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

/* Dark theme support for offline sync */
body.theme-dark .offline-sync-indicator {
    background: #ffc107;
    color: #000;
}

body.theme-dark .offline-sync-indicator:hover {
    background: #ffb300;
}

body.theme-dark .offline-sync-item {
    background: #495057;
    border-left-color: #ffc107;
}

body.theme-dark .offline-sync-item-name {
    color: #f8f9fa;
}

body.theme-dark .offline-sync-item-count {
    background: #ffc107;
    color: #000;
}