html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* Splash Screen Styling */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 9999;
    transition: opacity 0.3s ease-out;
}

[data-bs-theme="dark"] .splash-screen {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.splash-content {
    text-align: center;
    animation: fadeIn 0.6s ease-in-out;
}

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

.splash-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    animation: logoFloat 3s ease-in-out infinite;
    margin-bottom: 2rem;
    background-color: rgb(5, 39, 103);
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .splash-logo {
    background-color: rgb(13, 27, 42);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.splash-title {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.splash-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-weight: 300;
}

.splash-version {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 1rem;
    margin-bottom: 0;
    font-weight: 300;
}

.splash-loader {
    margin-top: 2rem;
}

.splash-loader .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3rem;
}

[data-bs-theme="dark"] .splash-loader .spinner-border {
    color: #667eea !important;
}

/* Hide old loading progress */
.loading-progress {
    display: none;
}

.loading-progress-text {
    display: none;
}

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Active Swing Highlight - subtle accent when video is playing through a swing */
.swing-active-highlight {
    background: linear-gradient(to right, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08)) !important;
    border-left: 3px solid #667eea !important;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15) !important;
}

.swing-active-highlight:hover {
    background: linear-gradient(to right, rgba(102, 126, 234, 0.12), rgba(118, 75, 162, 0.12)) !important;
}

/* Custom Tooltip Styling for Golf Step Tooltips */
.golf-step-tooltip {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.golf-step-tooltip .tooltip-inner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 250px;
    text-align: left;
    font-size: 0.875rem;
    line-height: 1.5;
}

.golf-step-tooltip .tooltip-inner strong {
    font-weight: 600;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 0.25rem;
}

.golf-step-tooltip .tooltip-arrow::before {
    border-top-color: #667eea !important;
}

/* Alternative green theme for success/active state */
.golf-step-tooltip.tooltip-success .tooltip-inner {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.golf-step-tooltip.tooltip-success .tooltip-arrow::before {
    border-top-color: #11998e !important;
}

/* Modern Page Header Styling */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
    margin: -1rem -1rem 2rem -1rem;
    border-radius: 0 0 1rem 1rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.page-header h2 {
    margin: 0;
    font-weight: 600;
    font-size: 1.75rem;
}

.page-header p {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
}

/* Enhanced Card Styling */
.card {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    padding: 1rem 1.25rem;
}

.card-header span:first-child {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-header span:first-child::before {
    content: '▶';
    font-size: 0.75rem;
    color: #667eea;
}

/* Enhanced List Group Items */
.list-group-item {
    border: 1px solid #e9ecef;
    border-radius: 0.5rem !important;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.list-group-item:hover {
    border-color: #667eea;
    background-color: #f8f9ff;
    transform: translateX(4px);
}

.list-group-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
}

.list-group-item.active .badge {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

/* Enhanced Badges */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
    border-radius: 0.375rem;
    font-size: 0.75rem;
}

.badge.bg-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
}

.badge.bg-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.badge.bg-light {
    background-color: #f8f9fa !important;
    color: #495057 !important;
    border: 1px solid #dee2e6;
}

/* Step Badges Enhancement */
.badge.bg-light:hover {
    background-color: #e9ecef !important;
    border-color: #adb5bd;
    transform: scale(1.05);
}

/* Alert Styling Enhancement */
.alert {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.alert-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
}

.alert-success {
    background: linear-gradient(135deg, #51cf66 0%, #38d9a9 100%);
    color: white;
}

.alert strong {
    font-weight: 600;
}

/* Form Switch Enhancement */
.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.form-check-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}

/* Video Player Container */
.video-player-container {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 0.75rem;
    position: relative;
    overflow: hidden;
}

.video-player-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Scrollbar Styling */
.overflow-y-auto::-webkit-scrollbar {
    width: 8px;
}

.overflow-y-auto::-webkit-scrollbar-track {
    background: #f1f3f5;
    border-radius: 4px;
}

.overflow-y-auto::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

.overflow-y-auto::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
}

/* Smooth transitions */
* {
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

button, .btn, .badge {
    transition: all 0.2s ease;
}

/* Impact text styling */
.list-group-item strong {
    color: inherit;
    font-weight: 600;
}

/* Navigation Menu Improvements */
.nav-link {
    font-size: 1rem !important;
    padding: 0.75rem 1rem !important;
    border-radius: 0.5rem;
    margin-bottom: 0.25rem;
}

.nav-link i {
    font-size: 1.25rem;
    min-width: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-link span {
    font-size: 1rem;
    line-height: 1.5rem;
}

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

.nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-weight: 500;
}

/* Statistics Page Enhancements */
.stats-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    border: 1px solid #e9ecef;
}

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

.stats-card-header {
    font-size: 0.875rem;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stats-card-header i {
    color: #667eea;
    font-size: 1rem;
}

.stats-card-value {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stats-card-subtitle {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
}

.stats-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.stats-card-icon.purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stats-card-icon.green {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.stats-card-icon.blue {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.stats-card-icon.orange {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

/* Bootstrap UI Improvements */

/* Card Enhancements */
.card {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.07);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

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

.card-header {
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.card-body {
    padding: 1.5rem;
}

/* Badge Enhancements */
.badge {
    padding: 0.4rem 0.7rem;
    font-weight: 500;
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Table Improvements */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
    padding: 1rem;
}

.table tbody tr {
    transition: background-color 0.2s ease;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
    box-shadow: inset 0 0 0 2000px rgba(0, 123, 255, 0.03);
}

/* Button Improvements */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

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

.btn-outline-primary {
    border: 2px solid #0d6efd;
}

.btn-outline-primary:hover {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Form Improvements */
.form-control,
.form-select {
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus,
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Alert Improvements */
.alert {
    border: none;
    border-left: 4px solid;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.07);
}

.alert-danger {
    border-left-color: #dc3545;
}

.alert-success {
    border-left-color: #198754;
}

.alert-info {
    border-left-color: #0dcaf0;
}

.alert-warning {
    border-left-color: #ffc107;
}

/* Nav Tabs Improvements */
.nav-tabs {
    border-bottom: 2px solid #dee2e6;
}

.nav-tabs .nav-link {
    color: #6c757d;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-tabs .nav-link:hover {
    color: #0d6efd;
    border-bottom-color: #0d6efd;
}

.nav-tabs .nav-link.active {
    color: #0d6efd;
    background-color: transparent;
    border-bottom-color: #0d6efd;
}

/* Modal Improvements */
.modal-content {
    border: none;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    border-radius: 0.5rem;
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Dark Mode Styling */
[data-bs-theme="dark"] {
    color-scheme: dark;
}

/* Dark mode - sidebar navigation */
[data-bs-theme="dark"] .sidebar {
    background-image: linear-gradient(180deg, rgb(13, 27, 42) 0%, #1a1a2e 70%);
}

[data-bs-theme="dark"] .nav-item a {
    color: #e0e0e0;
}

[data-bs-theme="dark"] .nav-item a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
}

[data-bs-theme="dark"] .nav-item a.active {
    background: linear-gradient(90deg, #0d6efd 0%, #0a58ca 100%) !important;
    color: #ffffff !important;
}

/* Dark mode - cards */
[data-bs-theme="dark"] .card {
    background-color: #1e1e1e;
    border-color: #2d2d2d;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .card:hover {
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.4);
}

[data-bs-theme="dark"] .card-header {
    background: linear-gradient(135deg, #2d2d2d 0%, #1e1e1e 100%);
    border-bottom-color: #3d3d3d;
    color: #e0e0e0;
}

[data-bs-theme="dark"] .card-body {
    color: #e0e0e0;
}

/* Dark mode - tables */
[data-bs-theme="dark"] .table {
    color: #e0e0e0;
}

[data-bs-theme="dark"] .table thead th {
    background: linear-gradient(135deg, #2d2d2d 0%, #1e1e1e 100%);
    border-bottom-color: #3d3d3d;
    color: #e0e0e0;
}

[data-bs-theme="dark"] .table-hover tbody tr:hover {
    background-color: #2d2d2d;
    box-shadow: inset 0 0 0 2000px rgba(13, 110, 253, 0.1);
}

[data-bs-theme="dark"] .table-light {
    background-color: #2d2d2d;
    color: #e0e0e0;
}

/* Dark mode - list groups */
[data-bs-theme="dark"] .list-group-item {
    background-color: #1e1e1e;
    border-color: #3d3d3d;
    color: #e0e0e0;
}

[data-bs-theme="dark"] .list-group-item:hover {
    background-color: #2d2d2d;
    border-color: #667eea;
}

[data-bs-theme="dark"] .list-group-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
}

/* Dark mode - forms */
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    background-color: #2d2d2d;
    border-color: #3d3d3d;
    color: #e0e0e0;
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
    background-color: #2d2d2d;
    border-color: #0d6efd;
    color: #e0e0e0;
}

[data-bs-theme="dark"] .form-control::placeholder {
    color: #808080;
}

/* Dark mode - modals */
[data-bs-theme="dark"] .modal-content {
    background-color: #1e1e1e;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.5);
}

[data-bs-theme="dark"] .modal-header {
    background: linear-gradient(135deg, #2d2d2d 0%, #1e1e1e 100%);
    border-bottom-color: #3d3d3d;
    color: #e0e0e0;
}

[data-bs-theme="dark"] .modal-body {
    color: #e0e0e0;
}

[data-bs-theme="dark"] .modal-footer {
    border-top-color: #3d3d3d;
}

/* Dark mode - dropdown */
[data-bs-theme="dark"] .dropdown-menu {
    background-color: #1e1e1e;
    border-color: #3d3d3d;
}

[data-bs-theme="dark"] .dropdown-item {
    color: #e0e0e0;
}

[data-bs-theme="dark"] .dropdown-item:hover {
    background-color: #2d2d2d;
    color: white;
}

[data-bs-theme="dark"] .dropdown-divider {
    border-top-color: #3d3d3d;
}

/* Dark mode - alerts */
[data-bs-theme="dark"] .alert-danger {
    background: linear-gradient(135deg, #c92a2a 0%, #a61e1e 100%);
}

[data-bs-theme="dark"] .alert-success {
    background: linear-gradient(135deg, #2b8a3e 0%, #1c6e42 100%);
}

[data-bs-theme="dark"] .alert-info {
    background: linear-gradient(135deg, #0c8599 0%, #0b6e7d 100%);
}

[data-bs-theme="dark"] .alert-warning {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

/* Dark mode - page header */
[data-bs-theme="dark"] .page-header {
    background: linear-gradient(135deg, #4c63d2 0%, #5c3d7c 100%);
}

/* Dark mode - stats cards */
[data-bs-theme="dark"] .stats-card {
    background-color: #1e1e1e;
    border-color: #3d3d3d;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .stats-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

[data-bs-theme="dark"] .stats-card-header {
    color: #b0b0b0;
}

[data-bs-theme="dark"] .stats-card-value {
    color: #e0e0e0;
}

[data-bs-theme="dark"] .stats-card-subtitle {
    color: #808080;
}

/* Dark mode - scrollbar */
[data-bs-theme="dark"] ::-webkit-scrollbar-track {
    background: #1e1e1e;
}

[data-bs-theme="dark"] ::-webkit-scrollbar-thumb {
    background: #4d4d4d;
}

[data-bs-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: #666666;
}

/* Dark mode - text colors */
[data-bs-theme="dark"] .text-muted {
    color: #808080 !important;
}

[data-bs-theme="dark"] .text-dark {
    color: #e0e0e0 !important;
}

/* Dark mode - borders */
[data-bs-theme="dark"] .border {
    border-color: #3d3d3d !important;
}

/* Dark mode - top row user menu */
[data-bs-theme="dark"] main .top-row {
    background-color: #1e1e1e;
    border-bottom-color: #3d3d3d;
}

[data-bs-theme="dark"] .btn-link {
    color: #6ea8fe;
}

[data-bs-theme="dark"] .btn-link:hover {
    color: #9ec5fe;
}

/* Dark mode - logs styling */
[data-bs-theme="dark"] .log-timestamp-header {
    background-color: rgba(30, 30, 30, 0.95) !important;
    border-left-color: #4d4d4d;
}

[data-bs-theme="dark"] .card.log-error {
    background-color: #2d1a1a;
    border-left-color: #dc3545;
}

[data-bs-theme="dark"] .card.log-warning {
    background-color: #2d2a1a;
    border-left-color: #ffc107;
}

[data-bs-theme="dark"] .card.log-info {
    background-color: #1a252d;
    border-left-color: #0dcaf0;
}

[data-bs-theme="dark"] .card.log-debug {
    background-color: #1e1e1e;
    border-left-color: #6c757d;
}

/* Mobile responsive: Hide extra buttons in card headers (show only first) */
@media (max-width: 575px) {
    .card-play-button-header > div > :nth-child(2),
    .card-play-button-header > div > :nth-child(3),
    .card-play-button-header > div > :nth-child(4),
    .card-play-button-header > div > :nth-child(5),
    .card-play-button-header > div > :nth-child(6),
    .card-play-button-header > div > :nth-child(7),
    .card-play-button-header > div > :nth-child(8),
    .card-play-button-header > div > :nth-child(9),
    .card-play-button-header > div > :nth-child(10) {
        display: none !important;
        visibility: hidden !important;
    }
}

/* ============================================
   VIDEO LIST TABLE - RESPONSIVE STYLES
   Used by VideoListTable component
   ============================================ */

/* Desktop Table Styling (default) */
.table-responsive {
    overflow-x: auto;
}

.video-table {
    width: 100%;
}

/* Hide button text on desktop/tablet, show only icons */
@media (min-width: 576px) {
    .d-flex.flex-wrap.gap-2 .btn {
        font-size: 0;
    }

    .d-flex.flex-wrap.gap-2 .btn i {
        font-size: 1rem;
        margin: 0 !important;
    }
}

/* Action Menu Button for Mobile */
.action-menu-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.25rem;
    color: #6c757d;
}

.action-menu-button:hover {
    color: #495057;
}

/* Mobile Card Layout (< 576px) */
@media (max-width: 575px) {
    /* Hide table and show cards instead */
    .table-responsive {
        display: none !important;
    }

    .video-table {
        display: none;
    }

    /* Card Grid Layout */
    .video-cards-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1rem;
        padding: 0;
    }

    .video-card {
        border: 1px solid #e9ecef;
        border-radius: 0.375rem;
        padding: 0;
        background-color: #fff;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        overflow: visible;
        display: flex;
        flex-direction: column;
        min-height: 100%;
        position: relative;
    }

    /* Dark mode support */
    [data-bs-theme="dark"] .video-card {
        background-color: #212529;
        border-color: #495057;
    }

    .video-card:hover {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        transition: box-shadow 0.2s ease;
    }

    /* Card Header with Filename and Expand Button */
    .card-header-mobile {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
        border-bottom: 1px solid #e9ecef;
        flex-shrink: 0;
        gap: 0.5rem;
    }

    [data-bs-theme="dark"] .card-header-mobile {
        border-bottom-color: #495057;
    }

    /* Play button on mobile (in header) */
    .card-play-button-header {
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }

    .card-play-button-header > div {
        display: flex;
        gap: 0.5rem;
    }

    /* Style the first button (play button) */
    .card-play-button-header .btn:first-child {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
        margin: 0;
    }

    /* Hide on desktop/tablet */
    @media (min-width: 768px) {
        .card-play-button-header {
            display: none !important;
        }
    }

    .card-expand-button {
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.25rem;
        color: #6c757d;
        font-size: 1.25rem;
        flex-shrink: 0;
    }

    .card-expand-button:hover {
        color: #495057;
    }

    [data-bs-theme="dark"] .card-expand-button {
        color: #adb5bd;
    }

    [data-bs-theme="dark"] .card-expand-button:hover {
        color: #e9ecef;
    }

    /* Expandable Properties Section */
    .card-properties-expanded {
        animation: expandDown 0.3s ease-out;
        padding: 0 1rem 1rem 1rem;
        border-top: 1px solid #e9ecef;
        margin-top: 0.5rem;
        padding-top: 1rem;
        flex-grow: 1;
        overflow-y: auto;
    }

    [data-bs-theme="dark"] .card-properties-expanded {
        border-top-color: #495057;
    }

    @keyframes expandDown {
        from {
            opacity: 0;
            max-height: 0;
        }
        to {
            opacity: 1;
            max-height: 1000px;
        }
    }

    /* Card Field Styling */
    .card-field {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 0.75rem;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid #f0f0f0;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .card-field:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    [data-bs-theme="dark"] .card-field {
        border-bottom-color: #495057;
    }

    .card-field-label {
        font-weight: 600;
        color: #495057;
        font-size: 0.875rem;
        min-width: 80px;
    }

    [data-bs-theme="dark"] .card-field-label {
        color: #adb5bd;
    }

    .card-field-value {
        color: #212529;
        text-align: right;
        flex: 1;
        min-width: 100px;
    }

    [data-bs-theme="dark"] .card-field-value {
        color: #e9ecef;
    }

    .card-field-value .badge {
        font-size: 0.75rem;
        display: inline-block;
    }

    .card-filename {
        font-weight: 600;
        color: #0d6efd;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        word-break: break-word;
        font-size: 0.95rem;
    }

    [data-bs-theme="dark"] .card-filename {
        color: #6ea8fe;
    }

    /* Card Footer - Always at bottom, right-aligned */
    .card-actions-footer {
        position: relative;
        padding: 1.5rem 1rem 1rem 1rem;
        border-top: 1px solid #e9ecef;
        margin-top: 0;
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

    [data-bs-theme="dark"] .card-actions-footer {
        border-top-color: #495057;
    }

    .card-actions-footer .dropdown {
        width: auto;
    }

    /* Mobile actions button - smaller and right-aligned */
    .btn-mobile-actions {
        background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
        border: none;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        font-weight: 500;
        box-shadow: 0 2px 4px rgba(13, 110, 253, 0.2);
        transition: all 0.3s ease;
        white-space: nowrap;
    }

    .btn-mobile-actions:hover {
        background: linear-gradient(135deg, #0b5ed7 0%, #0a58ca 100%);
        box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
        transform: translateY(-2px);
    }

    .btn-mobile-actions:active,
    .btn-mobile-actions[aria-expanded="true"] {
        transform: translateY(0);
        box-shadow: 0 2px 4px rgba(13, 110, 253, 0.2);
    }

    [data-bs-theme="dark"] .btn-mobile-actions:hover {
        background: linear-gradient(135deg, #0b5ed7 0%, #0a58ca 100%);
        box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
    }

    /* Dropdown menu styling for mobile actions */
    .dropdown-menu {
        border-radius: 0.5rem;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        border: 1px solid #dee2e6;
        padding: 0.5rem 0;
        min-width: 200px;
    }

    [data-bs-theme="dark"] .dropdown-menu {
        background-color: #2a2d31;
        border-color: #495057;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    }

    /* Dropdown actions wrapper */
    .dropdown-actions-wrapper {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .dropdown-actions-wrapper .btn,
    .dropdown-actions-wrapper a {
        width: 100%;
        justify-content: flex-start;
        text-align: left;
        border: none;
        border-radius: 0;
        padding: 0.75rem 1rem;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        font-size: 0.9rem;
        font-weight: 500;
        transition: all 0.2s ease;
    }

    /* Primary button styling in dropdown */
    .dropdown-actions-wrapper .btn-primary {
        background-color: #0d6efd;
        color: #fff;
    }

    .dropdown-actions-wrapper .btn-primary:hover {
        background-color: #0b5ed7;
    }

    /* Secondary button styling in dropdown */
    .dropdown-actions-wrapper .btn-secondary {
        background-color: #6c757d;
        color: #fff;
    }

    .dropdown-actions-wrapper .btn-secondary:hover {
        background-color: #5c636a;
    }

    /* Info button styling in dropdown */
    .dropdown-actions-wrapper .btn-info {
        background-color: #0dcaf0;
        color: #000;
    }

    .dropdown-actions-wrapper .btn-info:hover {
        background-color: #31d2f2;
    }

    /* Warning button styling in dropdown */
    .dropdown-actions-wrapper .btn-warning {
        background-color: #ffc107;
        color: #000;
    }

    .dropdown-actions-wrapper .btn-warning:hover {
        background-color: #ffca2c;
    }

    /* Success button styling in dropdown */
    .dropdown-actions-wrapper .btn-success {
        background-color: #198754;
        color: #fff;
    }

    .dropdown-actions-wrapper .btn-success:hover {
        background-color: #157347;
    }

    /* Danger button styling in dropdown */
    .dropdown-actions-wrapper .btn-danger {
        background-color: #dc3545;
        color: #fff;
    }

    .dropdown-actions-wrapper .btn-danger:hover {
        background-color: #bb2d3b;
    }

    /* Outline buttons in dropdown */
    .dropdown-actions-wrapper .btn-outline-secondary,
    .dropdown-actions-wrapper .btn-outline-info,
    .dropdown-actions-wrapper .btn-outline-warning,
    .dropdown-actions-wrapper .btn-outline-success,
    .dropdown-actions-wrapper .btn-outline-danger {
        background-color: transparent;
        border: none;
    }

    .dropdown-actions-wrapper .btn-outline-secondary {
        color: #6c757d;
    }

    .dropdown-actions-wrapper .btn-outline-secondary:hover {
        background-color: #f0f2f5;
        color: #495057;
    }

    .dropdown-actions-wrapper .btn-outline-info {
        color: #0dcaf0;
    }

    .dropdown-actions-wrapper .btn-outline-info:hover {
        background-color: #f0f8fb;
        color: #0a7fb5;
    }

    .dropdown-actions-wrapper .btn-outline-warning {
        color: #ffc107;
    }

    .dropdown-actions-wrapper .btn-outline-warning:hover {
        background-color: #fffaf0;
        color: #cc9900;
    }

    .dropdown-actions-wrapper .btn-outline-success {
        color: #198754;
    }

    .dropdown-actions-wrapper .btn-outline-success:hover {
        background-color: #f0f9f5;
        color: #126844;
    }

    .dropdown-actions-wrapper .btn-outline-danger {
        color: #dc3545;
    }

    .dropdown-actions-wrapper .btn-outline-danger:hover {
        background-color: #fff5f5;
        color: #b02a37;
    }

    /* NavLink styling in dropdown */
    .dropdown-actions-wrapper a.btn {
        color: #6c757d;
    }

    .dropdown-actions-wrapper a.btn:hover {
        background-color: #f0f2f5;
        color: #495057;
    }

    /* Dark mode support */
    [data-bs-theme="dark"] .dropdown-actions-wrapper .btn {
        color: #e9ecef;
    }

    [data-bs-theme="dark"] .dropdown-actions-wrapper .btn:hover {
        background-color: #3d4048;
    }

    /* Solid button colors in dark mode */
    [data-bs-theme="dark"] .dropdown-actions-wrapper .btn-primary {
        background-color: #0d6efd;
        color: #fff;
    }

    [data-bs-theme="dark"] .dropdown-actions-wrapper .btn-secondary {
        background-color: #6c757d;
        color: #fff;
    }

    [data-bs-theme="dark"] .dropdown-actions-wrapper .btn-info {
        background-color: #0dcaf0;
        color: #000;
    }

    [data-bs-theme="dark"] .dropdown-actions-wrapper .btn-warning {
        background-color: #ffc107;
        color: #000;
    }

    [data-bs-theme="dark"] .dropdown-actions-wrapper .btn-success {
        background-color: #198754;
        color: #fff;
    }

    [data-bs-theme="dark"] .dropdown-actions-wrapper .btn-danger {
        background-color: #dc3545;
        color: #fff;
    }

    [data-bs-theme="dark"] .dropdown-actions-wrapper .btn-danger:hover {
        background-color: #bb2d3b;
    }

    /* Outline button colors in dark mode */
    [data-bs-theme="dark"] .dropdown-actions-wrapper .btn-outline-secondary {
        color: #adb5bd;
    }

    [data-bs-theme="dark"] .dropdown-actions-wrapper .btn-outline-info {
        color: #6ea8fe;
    }

    [data-bs-theme="dark"] .dropdown-actions-wrapper .btn-outline-warning {
        color: #ffc107;
    }

    [data-bs-theme="dark"] .dropdown-actions-wrapper .btn-outline-success {
        color: #75d75f;
    }

    [data-bs-theme="dark"] .dropdown-actions-wrapper .btn-outline-danger {
        color: #ea868f;
    }

    [data-bs-theme="dark"] .dropdown-actions-wrapper .btn-outline-danger:hover {
        background-color: #3d2022;
        color: #f4989f;
    }

    /* Hide first button in dropdown (it's in the card header) */
    .dropdown-actions-wrapper .btn:first-child,
    .dropdown-actions-wrapper a:first-child {
        display: none !important;
    }
}

/* ============================================
   PAGINATION CONTROL - RESPONSIVE STYLES
   Used by PaginationControl component
   ============================================ */

/* Desktop Pagination (>= 576px) */
.pagination-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.pagination {
    margin-bottom: 0;
}

.pagination-info {
    font-size: 0.875rem;
    color: #6c757d;
    white-space: nowrap;
}

.page-size-select {
    width: auto;
}

/* Mobile Pagination (< 576px) */
@media (max-width: 575px) {
    .pagination-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .pagination {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .pagination .page-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    /* Hide page numbers on mobile, keep only Prev/Next */
    .pagination .page-item:not(:first-child):not(:last-child) {
        display: none;
    }

    .pagination-info {
        width: 100%;
        text-align: center;
        font-size: 0.8rem;
    }

    .input-group {
        width: 100%;
        margin-top: 0.5rem;
    }

    .input-group-sm .form-select {
        font-size: 0.875rem;
    }

    .input-group-text {
        font-size: 0.8rem;
        padding: 0.375rem 0.5rem;
    }
}

/* Load More Button Styling (Mobile) */
.load-more-container {
    text-align: center;
    padding: 1.5rem 0;
}

.load-more-button {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0.375rem;
}

@media (max-width: 575px) {
    .load-more-button {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* ============================================
   MOBILE BOTTOM NAVIGATION BAR
   Fixed bottom navigation for mobile tabs
   ============================================ */

@media (max-width: 767px) {
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: #fff;
        border-top: 1px solid #dee2e6;
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 0.5rem 0;
        z-index: 1040;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }

    [data-bs-theme="dark"] .mobile-bottom-nav {
        background-color: #212529;
        border-top-color: #495057;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        color: #6c757d;
        font-size: 0.75rem;
        font-weight: 500;
        padding: 0.5rem 1rem;
        transition: all 0.2s ease;
        cursor: pointer;
        flex: 1;
    }

    .mobile-nav-item i {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }

    .mobile-nav-item:hover {
        color: #0d6efd;
        background-color: rgba(13, 110, 253, 0.1);
    }

    .mobile-nav-item.active {
        color: #0d6efd;
        font-weight: 600;
    }

    .mobile-nav-item.active i {
        transform: scale(1.1);
    }

    [data-bs-theme="dark"] .mobile-nav-item {
        color: #adb5bd;
    }

    [data-bs-theme="dark"] .mobile-nav-item:hover {
        color: #6ea8fe;
        background-color: rgba(110, 168, 254, 0.1);
    }

    [data-bs-theme="dark"] .mobile-nav-item.active {
        color: #6ea8fe;
    }

    /* Add padding to content to prevent overlap with fixed bottom nav */
    .content {
        padding-bottom: 80px;
    }
}