﻿/* FeltID Main Stylesheet - Optimized for Consistency */

:root {
    /* Color Palette */
    --felt-green-primary: #0f5738;
    --felt-green-dark: #0a3e26;
    --felt-green-light: #22c55e;
    --felt-accent: #ffb700; /* Yellow accent color */
    /* Gray Scale */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-750: #2c3444; /* Custom shade */
    --gray-800: #1e293b;
    --gray-900: #111827;
    /* UI Colors */
    --success: #16a34a;
    --success-light: #22c55e;
    --warning: #eab308;
    --danger: #b91c1c;
    --danger-light: #ef4444;
    --info: #3b82f6;
    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
}

/* ======= Base Styles ======= */
body {
    font-family: var(--font-body);
    color: var(--gray-100);
    background-color: var(--gray-900);
    line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--gray-100);
}

a {
    color: var(--felt-green-light);
    text-decoration: none;
    transition: color 0.2s;
}

    a:hover {
        color: #4ade80; /* Lighter green on hover */
    }

button {
    cursor: pointer;
}

/* ======= Poker Felt Styling ======= */
.poker-felt {
    background-color: var(--felt-green-primary);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
    border-bottom: 3px solid var(--felt-green-dark);
    position: relative;
}

.felt-texture::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 2px, transparent 2px);
    background-size: 16px 16px;
    pointer-events: none;
}

/* ======= Logo Styling ======= */
.logo-header {
    border-radius: 50%;
    border: 2px solid #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-chip {
    transition: transform 0.3s ease;
}

    .logo-chip:hover {
        transform: rotate(15deg);
    }

.logo-shadow {
    filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.5));
}

/* ======= Form Elements ======= */
input, select, textarea {
    background-color: var(--gray-700);
    color: var(--gray-100);
    padding: var(--space-2);
    border: 1px solid var(--gray-600);
    border-radius: var(--radius-md);
    font-size: 1rem;
    line-height: 1.5;
    width: 100%;
}

    input:focus, select:focus, textarea:focus {
        outline: none;
        border-color: var(--felt-green-light);
        box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
    }

::placeholder {
    color: var(--gray-500);
}

/* Range slider styling - unified */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 0.5rem;
    background: var(--gray-600);
    border-radius: var(--radius-sm);
    outline: none;
}

    input[type="range"]::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 1.25rem;
        height: 1.25rem;
        border-radius: 50%;
        background: white;
        cursor: pointer;
        border: 2px solid var(--gray-600);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    input[type="range"]::-moz-range-thumb {
        width: 1.25rem;
        height: 1.25rem;
        border-radius: 50%;
        background: white;
        cursor: pointer;
        border: 2px solid var(--gray-600);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    input[type="range"]:focus::-webkit-slider-thumb {
        box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.3);
    }

    input[type="range"]:focus::-moz-range-thumb {
        box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.3);
    }

/* Enhanced Checkbox Styling - Mobile-friendly - START */
input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: var(--gray-700);
    border: 2px solid var(--gray-600);
    border-radius: var(--radius-sm);
    cursor: pointer;
    position: relative;
    vertical-align: middle;
    margin: 0;
    /* Ensure minimum touch target size for mobile */
    min-width: 20px;
    min-height: 20px;
    display: inline-block;
}

    input[type="checkbox"]:checked {
        background-color: var(--felt-green-light);
        border-color: var(--felt-green-light);
    }

        input[type="checkbox"]:checked::after {
            content: '';
            position: absolute;
            left: 6px;
            top: 2px;
            width: 5px;
            height: 10px;
            border: solid white;
            border-width: 0 2px 2px 0;
            transform: rotate(45deg);
        }

    input[type="checkbox"]:focus {
        outline: none;
        box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.3);
    }

/* CSS Mobile Fixes */
@media (max-width: 640px) {
    input[type="checkbox"] {
        width: 1.5rem;
        height: 1.5rem;
        transform: scale(1.2);
    }

        input[type="checkbox"]:checked::after {
            left: 8px;
            top: 3px;
            width: 6px;
            height: 12px;
        }

    /* Better tap target for checkboxes on mobile */
    .flex.items-center.h-5 {
        min-height: 28px;
    }

    /* Fix for iOS touch */
    label {
        cursor: pointer;
        display: inline-flex;
    }
}

/* iOS-specific fixes */
@supports (-webkit-touch-callout: none) {
    input[type="checkbox"] {
        visibility: visible !important;
        opacity: 1 !important;
        transform: scale(1.3);
    }
}
/* Enhanced Checkbox Styling - Mobile-friendly - END */

/* ======= Buttons ======= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all 0.2s;
    min-height: 2.5rem;
}

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

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

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

    .btn-secondary:hover {
        background-color: var(--gray-600);
    }

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

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

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    min-height: 2rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .btn-icon i, .btn-icon svg {
        margin-right: 0.5rem;
    }

.btn-icon-only {
    padding: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
}

.btn-rounded {
    border-radius: var(--radius-full);
}

/* ======= Cards and Containers ======= */
.card {
    background-color: var(--gray-800);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    box-shadow: var(--shadow-md);
}

.card-header {
    padding-bottom: var(--space-3);
    margin-bottom: var(--space-4);
    border-bottom: 1px solid var(--gray-700);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-100);
}

.card-footer {
    padding-top: var(--space-3);
    margin-top: var(--space-4);
    border-top: 1px solid var(--gray-700);
}

/* ======= Player Ratings Visualization ======= */
.slider-container {
    margin-bottom: var(--space-4);
}

.slider-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-1);
}

.slider-label-text {
    font-size: 0.875rem;
    color: var(--gray-300);
}

.slider-label-value {
    font-size: 0.75rem;
    color: var(--gray-400);
}

.slider-track {
    position: relative;
    height: 0.5rem;
    border-radius: var(--radius-full);
    overflow: hidden;
    background-color: var(--gray-700);
}

.aggression-track {
    background: linear-gradient(to right, var(--success), var(--warning), var(--danger));
}

.range-track {
    background: linear-gradient(to right, var(--danger), var(--warning), var(--success));
}

.slider-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    border-right: 2px solid white;
}

.slider-legend {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-top: var(--space-1);
}

/* ======= Badges and Tags ======= */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    color: white;
}

    .badge i, .badge svg {
        margin-right: 0.25rem;
    }

.badge-pro {
    background: linear-gradient(to right, #f59e0b, #d97706);
}

.badge-blue {
    background-color: #1e40af;
}

.badge-purple {
    background-color: #7e22ce;
}

.badge-green {
    background-color: #15803d;
}

.badge-amber {
    background-color: #92400e;
}

/* ======= Player Card Styling ======= */
.player-avatar {
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #b91c1c;
}

.player-avatar-lg {
    width: 11rem;
    height: 11rem;
}

.player-avatar-md {
    width: 6rem;
    height: 6rem;
}

.player-avatar-sm {
    width: 3rem;
    height: 3rem;
}

.player-avatar-xs {
    width: 2rem;
    height: 2rem;
}

.player-thumbnail {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid #b91c1c;
    object-fit: cover;
}

/* ======= Comment/Notes Styling ======= */
.player-note {
    background-color: var(--gray-800);
    border-radius: var(--radius-lg);
    padding: var(--space-3);
    margin-bottom: var(--space-3);
}

.note-content {
    color: var(--gray-200);
    margin-bottom: var(--space-2);
    font-size: 0.875rem;
}

.note-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
    margin-bottom: var(--space-2);
}

.note-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-2);
    margin-top: var(--space-2);
    border-top: 1px solid var(--gray-700);
    font-size: 0.75rem;
    color: var(--gray-400);
}

.note-stat {
    display: flex;
    align-items: center;
}

    .note-stat i {
        margin-right: 0.25rem;
    }

.note-actions {
    display: flex;
    gap: 0.5rem;
}

/* ======= Hero Section (About page) ======= */
.hero-section {
    text-align: center;
    margin-bottom: var(--space-12);
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--gray-100);
    margin-bottom: var(--space-4);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-300);
}

.hero-divider {
    width: 6rem;
    height: 0.25rem;
    background-color: var(--felt-green-light);
    margin: var(--space-4) auto 0;
}

/* ======= Feature Cards ======= */
.feature-card {
    background-color: var(--gray-750);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
}

.feature-icon-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 3rem;
    width: 3rem;
    border-radius: 50%;
    background-color: var(--felt-green-light);
    color: white;
    margin-bottom: var(--space-3);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--gray-100);
    margin-bottom: var(--space-2);
}

/* ======= Camera/Video Styles ======= */
.video-container {
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    border: 2px solid var(--gray-700);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 640px;
    background-color: var(--gray-900);
}

#videoElement {
    display: block;
    width: 100%;
    transform-origin: center;
    transition: transform 0.2s ease-out;
}

.zoom-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: var(--space-3);
    gap: var(--space-2);
}

.zoom-button {
    background-color: rgba(17, 24, 39, 0.8);
    border: 1px solid var(--gray-600);
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
}

    .zoom-button:hover {
        background-color: rgba(31, 41, 55, 0.9);
    }

    .zoom-button:active {
        background-color: var(--gray-700);
        transform: scale(0.95);
    }

.zoom-slider-container {
    flex-grow: 1;
    max-width: 12rem;
    padding: 0 var(--space-2);
}

.zoom-level {
    min-width: 3rem;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-300);
}

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

.animate-fade-out {
    animation: fadeOut 0.5s ease-in-out forwards;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* ======= Responsive Adjustments ======= */
@media (max-width: 640px) {
    input, select, textarea, button {
        font-size: 16px !important; /* Prevents zoom on input focus in iOS */
    }

    /* Improve touch targets for mobile */
    button, a, [role="button"] {
        min-height: 36px;
        min-width: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Fix iOS form inputs */
    input, select, textarea {
        border-radius: 4px !important;
        -webkit-appearance: none;
    }

    .hero-title {
        font-size: 1.75rem;
    }
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .button-group {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: var(--space-4);
    }
}

@media (min-width: 768px) {
    .feature-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .metrics-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}
/* Add these styles to your feltid.css file */

/* Badge Styles */
.badge-success, .badge-warning, .badge-info, .badge-danger {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
}

.badge-success {
    background-color: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid #10b981;
}

.badge-warning {
    background-color: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid #f59e0b;
}

.badge-info {
    background-color: rgba(6, 182, 212, 0.2);
    color: #06b6d4;
    border: 1px solid #06b6d4;
}

.badge-danger {
    background-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
}

/* Button Styles for Registration Codes */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 0.25rem;
}

/* Alert Styles */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Add these styles to improve paragraph spacing */
.section-text {
    margin-bottom: 1rem; /* Add space between paragraphs */
    line-height: 1.6; /* Improve readability */
}

    .section-text:last-child {
        margin-bottom: 0; /* Remove bottom margin from last paragraph */
    }

/* Enhanced Heading Styles */
h2.section-title {
    position: relative;
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    letter-spacing: 0.03em;
}

    h2.section-title::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 3rem;
        height: 0.25rem;
        background: linear-gradient(to right, var(--felt-green-light), var(--felt-green-primary));
        border-radius: 0.125rem;
    }

/* Responsive adjustments */
@media (min-width: 768px) {
    h2.section-title {
        font-size: 2rem;
    }

        h2.section-title::after {
            width: 4rem;
        }
}

/* Special styling for dark background sections */
.bg-gray-750 h2.section-title::after {
    background: linear-gradient(to right, var(--felt-green-light), var(--felt-accent));
}

/* CTA section heading special styling */
h2.cta-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

    h2.cta-title::before {
        content: "";
        position: absolute;
        bottom: -0.5rem;
        left: 0;
        right: 0;
        height: 0.25rem;
        background: var(--felt-accent);
        border-radius: 0.125rem;
    }

@media (min-width: 768px) {
    h2.cta-title {
        font-size: 2.25rem;
    }
}

/* Equal-sized Buttons */
.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

    .button-group .btn {
        flex: 1;
        min-width: 160px;
        text-align: center;
        justify-content: center;
        padding: 0.75rem 1rem;
        font-weight: 600;
        letter-spacing: 0.02em;
        border-radius: var(--radius-md);
        transition: all 0.2s ease-in-out;
    }

        /* Adding a subtle hover animation */
        .button-group .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .button-group .btn:active {
            transform: translateY(0);
        }

/* Enhanced h3 Styles */
h3.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.75rem;
    position: relative;
    padding-bottom: 0.5rem;
}

    h3.feature-title::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 2rem;
        height: 0.15rem;
        background-color: var(--felt-green-light);
        border-radius: 0.125rem;
    }

/* Special styling for h3 in feature cards (centered) */
.feature-card h3.feature-title {
    text-align: center;
}

    .feature-card h3.feature-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

/* FAQ question styling */
h3.faq-question {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--felt-accent);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

/* CTA heading */
h2.cta-title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* Section titles */
h2.section-title {
    font-size: 1.625rem;
    line-height: 1.2;
}

/* Main heading */
.hero-title {
    font-size: 1.875rem;
    line-height: 1.2;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    h3.feature-title {
        font-size: 1.375rem;
    }

    h3.faq-question {
        font-size: 1.25rem;
    }
}

/* Mobile optimization for buttons */
@media (max-width: 640px) {
    .button-group {
        flex-direction: column;
    }

        .button-group .btn {
            width: 100%;
        }

    .content-section {
        padding: 1.25rem;
    }

    .space-y-10 > * {
        margin-top: 1.75rem;
        margin-bottom: 1.75rem;
    }

    .space-y-4 > * {
        margin-top: 0.75rem;
        margin-bottom: 0.75rem;
    }
}

/* General responsive adjustments for smaller screens */
@media (max-width: 480px) {
    h3.faq-question {
        font-size: 1rem;
    }

    h2.cta-title {
        font-size: 1.5rem;
    }

    h2.section-title {
        font-size: 1.375rem;
    }

    .hero-title {
        font-size: 1.625rem;
    }

    /* Adjust paragraph text */
    p {
        font-size: 0.9375rem;
    }

    .faq-item {
        padding: 0.75rem;
    }
}
/* Reduced heading sizes for mobile to prevent wrapping */
@media (max-width: 480px) {
    h2.cta-title {
        font-size: 1.25rem; /* Further reduced from 1.5rem */
    }

    h2.section-title {
        font-size: 1.25rem; /* Further reduced from 1.375rem */
    }

    .hero-title {
        font-size: 1.5rem; /* Slightly reduced from 1.625rem */
    }
}

/* Extra small screen adjustments */
@media (max-width: 360px) {
    h2.cta-title {
        font-size: 1.125rem;
    }

    h2.section-title {
        font-size: 1.125rem;
    }

    .hero-title {
        font-size: 1.35rem;
    }

    /* Optimize line height for smaller text */
    h2.cta-title, h2.section-title, .hero-title {
        line-height: 1.15;
    }
}

/* Add these styles to feltid.css */

/* Tournament Filters */
.tournament-series {
    transition: all 0.2s ease-in-out;
}

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

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

    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        font-size: 0.875rem;
        color: var(--gray-300);
    }

.form-control {
    background-color: var(--gray-700);
    color: var(--gray-100);
    padding: 0.5rem;
    border: 1px solid var(--gray-600);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    width: 100%;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

    .form-control:focus {
        outline: none;
        border-color: var(--felt-green-light);
        box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
    }

    .form-control::placeholder {
        color: var(--gray-500);
    }

/* Game Type Filter Styles */
.btn-filter {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    color: white;
    border: none;
    transition: all 0.2s;
}

    .btn-filter.active {
        background-color: var(--felt-green-light);
        color: white;
    }

/* Tournament Table Styles */
.tournament-row {
    transition: background-color 0.2s;
}

th {
    position: sticky;
    top: 0;
    background-color: var(--gray-800);
    z-index: 10;
}

/* Event Detail Styles */
.detail-block {
    transition: all 0.2s;
}

    .detail-block:hover {
        background-color: rgba(255, 255, 255, 0.08);
    }

/* Mobile Event Cards */
@media (max-width: 767px) {
    /* Card-style events for mobile */
    .bg-gray-800.rounded-lg {
        border: 1px solid var(--gray-700);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        transition: transform 0.2s, box-shadow 0.2s;
    }

        /* Add subtle hover effect */
        .bg-gray-800.rounded-lg:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        }

    /* Better spacing */
    .space-y-3 > * {
        margin-top: 0;
        margin-bottom: 0.75rem;
    }

    /* Improve badge position */
    .badge {
        margin-top: -0.25rem;
    }

    /* Reduce font size for event titles in mobile cards */
    .bg-gray-800.rounded-lg h4 {
        font-size: 0.9375rem;
        line-height: 1.4;
    }

    /* Reduce font size for series titles on mobile */
    .tournament-series h3.text-lg,
    .tournament-series h3.text-xl {
        font-size: 1rem;
        line-height: 1.3;
    }
}

/* Improved table scrolling for all screen sizes */
.overflow-x-auto {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-600) var(--gray-800);
}

    .overflow-x-auto::-webkit-scrollbar {
        height: 6px;
    }

    .overflow-x-auto::-webkit-scrollbar-track {
        background: var(--gray-800);
    }

    .overflow-x-auto::-webkit-scrollbar-thumb {
        background-color: var(--gray-600);
        border-radius: 3px;
    }

/* General mobile improvements for tournament page */
@media (max-width: 640px) {
    /* Optimize inputs for mobile */
    input[type="date"],
    input[type="number"],
    input[type="text"],
    select {
        font-size: 16px !important; /* Prevents zoom on iOS devices */
        padding: 0.5rem;
        min-height: 44px; /* Better tap targets */
    }

    /* Make form labels and group headings more readable */
    .form-group label, .text-gray-400 {
        font-weight: 500;
    }

    /* Adjust card spacing for small screens */
    .card {
        padding: 1rem;
    }

    /* Improve small text readability */
    .text-sm {
        font-size: 0.875rem;
        line-height: 1.4;
    }

    /* Better handle long text */
    .whitespace-normal {
        word-break: break-word;
        max-width: 100%;
        display: inline-block;
    }

    /* Pagination on mobile */
    nav[aria-label="Pagination"] {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.25rem;
        margin: 1rem 0;
    }

        nav[aria-label="Pagination"] a {
            min-width: 2.5rem;
            min-height: 2.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
        }

    /* Stack buttons on mobile */
    .btn {
        width: 100%;
        justify-content: center;
        margin-bottom: 0.5rem;
    }

    /* Add more space to checkboxes for easier tapping */
    input[type="checkbox"] {
        min-width: 1rem;
        min-height: 1rem;
        margin-right: 0.5rem;
    }

    label.inline-flex {
        padding: 0.5rem;
        margin: 0.125rem;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .form-group label {
        font-size: 0.8125rem;
    }

    .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    /* Ensure proper spacing for the filter form */
    .grid.gap-3 {
        gap: 0.5rem;
    }

    /* Create some breathing room */
    .p-3, .p-4 {
        padding: 0.625rem;
    }
}
/* Modern Toggle Switch Styling */
.toggle-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

    .toggle-switch input {
        opacity: 0;
        width: 0;
        height: 0;
        position: absolute;
    }

.toggle-slider {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    background-color: var(--gray-700);
    border-radius: 20px;
    transition: .3s;
}

    .toggle-slider:before {
        position: absolute;
        content: "";
        height: 16px;
        width: 16px;
        left: 2px;
        bottom: 2px;
        background-color: white;
        border-radius: 50%;
        transition: .3s;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    }

input:checked + .toggle-slider {
    background-color: var(--felt-green-light);
}

input:focus + .toggle-slider {
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
}

input:checked + .toggle-slider:before {
    transform: translateX(16px);
}

/* Mobile optimization */
@media (max-width: 640px) {
    .toggle-switch {
        touch-action: manipulation;
    }

    .toggle-slider {
        width: 44px;
        height: 24px;
    }

        .toggle-slider:before {
            height: 20px;
            width: 20px;
        }

    input:checked + .toggle-slider:before {
        transform: translateX(20px);
    }
}
/* Mobile search button optimization */
@media (max-width: 640px) {
    #nameSearchButton {
        min-width: 56px; /* Larger tap target on mobile */
        height: 44px; /* Match input height */
        padding: 0 1rem; /* Add horizontal padding */
    }

    #nameSearchInput {
        height: 44px; /* Make input taller for better touch on mobile */
        font-size: 16px; /* Prevent iOS zoom on focus */
    }
}
