/* login page */

.error-message {
            background-color: #f8d7da;
            color: #721c24;
            padding: 10px 15px;
            border-radius: 5px;
            margin-bottom: 20px;
            border: 1px solid #f5c6cb;
            font-size: 14px;
        }
        .success-message {
            background-color: #d4edda;
            color: #155724;
            padding: 10px 15px;
            border-radius: 5px;
            margin-bottom: 20px;
            border: 1px solid #c3e6cb;
            font-size: 14px;
        }

/* register page */

        .error-message {
            background-color: #f8d7da;
            color: #721c24;
            padding: 10px 15px;
            border-radius: 5px;
            margin-bottom: 20px;
            border: 1px solid #f5c6cb;
            font-size: 14px;
        }
        .password-hint {
            font-size: 12px;
            color: #6c757d;
            margin-top: 5px;
        }
        .is-valid {
            border-color: #4cd964 !important;
        }
        .is-invalid {
            border-color: #dc3545 !important;
        }
        /* ===== INPUT GROUP VALIDATION FIX ===== */

/* VALID STATE */
.input-group:has(.form-control.is-valid) {
    border: 1px;
}

.input-group:has(.form-control.is-valid) .form-control,
.input-group:has(.form-control.is-valid) .input-group-text {
    border-color: #4cd964 !important;
}

/* INVALID STATE */
.input-group:has(.form-control.is-invalid) {
    border: 1px;
}

.input-group:has(.form-control.is-invalid) .form-control,
.input-group:has(.form-control.is-invalid) .input-group-text {
    border-color: #dc3545 !important;
}
.input-group .form-control {
    border-right: 0;
}

.input-group .input-group-text {
    border-left: 0;
}

/* match-center */

/* Minimal custom CSS - only what's not in style.css */
        .stat-card {
            background: var(--bg-white);
        }
        .stat-card .stat-icon {
            position: absolute;
            right: 1rem;
            top: 50%;
            transform: translateY(-50%);
            font-size: 3rem;
            opacity: 0.1;
            color: var(--primary);
        }
        .match-card {
            background: var(--bg-white);
            transition: all 0.3s ease;
        }
        .match-card:hover {
            border-color: var(--primary) !important;
            box-shadow: 0 10px 30px rgba(13, 119, 94, 0.1) !important;
        }
        .team-progress {
            background: var(--rgba-primary-1);
        }
        .team-progress .team-color {
            width: 12px;
            height: 12px;
            border-radius: 3px;
        }
        .status-badge.open {
            background: rgba(67, 205, 139, 0.1);
            color: #43CD8B;
        }
        .status-badge.full {
            background: rgba(225, 35, 68, 0.1);
            color: #E12344;
        }
        .status-badge.completed {
            background: rgba(161, 49, 173, 0.1);
            color: #A131AD;
        }
        .action-btn {
            width: 36px;
            height: 36px;
            background: var(--light);
            color: var(--body-color);
            transition: all 0.3s ease;
        }
        .action-btn:hover {
            background: var(--primary);
            color: #fff;
            transform: scale(1.1);
        }
        .venue-badge {
            background: var(--rgba-primary-1);
            color: var(--primary);
        }
        .empty-state {
            text-align: center;
            padding: 4rem 2rem;
            background: var(--bg-white);
            border: 2px dashed var(--border-color);
        }
        .empty-state i {
            font-size: 4rem;
            color: var(--border-color);
        }
        
        /* Dark mode adjustments */
        .theme-dark .stat-card,
        .theme-dark .filter-section,
        .theme-dark .match-card {
            background: var(--card-bg);
        }
        .theme-dark .btn-filter {
            background: rgba(255, 255, 255, 0.1);
        }
        .theme-dark .action-btn {
            background: rgba(255, 255, 255, 0.1);
        }
        .theme-dark .team-progress {
            background: rgba(255, 255, 255, 0.05);
        }
        
        /* Minimal custom CSS - only what's not in style.css */
    .stat-card {
        background: var(--bg-white);
    }
    .stat-card .stat-icon {
        position: absolute;
        right: 0.5rem;
        top: 50%;
        transform: translateY(-50%);
        font-size: 2rem !important;
        opacity: 0.1;
        color: var(--primary);
    }
    
    /* Stats cards always in one row on all screens */
    .stat-row {
        flex-wrap: nowrap !important;
    }
    .stat-row .col-3 {
        min-width: 0;
        flex: 1;
    }
    
    /* Card content adjustments for mobile */
    @media (max-width: 576px) {
        .stat-card {
            padding: 0.5rem !important;
        }
        .stat-card .stat-icon {
            right: 0.25rem;
            font-size: 1.75rem !important;
        }
        .stat-card .stat-label {
            font-size: 0.6rem !important;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 70%;
        }
        .stat-card .stat-value {
            font-size: 0.9rem !important;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 70%;
        }
    }
    
    .match-card {
        background: var(--bg-white);
        transition: all 0.3s ease;
    }
    .match-card:hover {
        border-color: var(--primary) !important;
        box-shadow: 0 10px 30px rgba(13, 119, 94, 0.1) !important;
    }
    .team-progress {
        background: var(--rgba-primary-1);
    }
    .team-progress .team-color {
        width: 12px;
        height: 12px;
        border-radius: 3px;
    }
    .status-badge.open {
        background: rgba(67, 205, 139, 0.1);
        color: #43CD8B;
    }
    .status-badge.full {
        background: rgba(225, 35, 68, 0.1);
        color: #E12344;
    }
    .status-badge.completed {
        background: rgba(161, 49, 173, 0.1);
        color: #A131AD;
    }
    .action-btn {
        width: 32px;
        height: 32px;
        background: var(--light);
        color: var(--body-color);
        transition: all 0.3s ease;
        font-size: 0.9rem;
    }
    .action-btn:hover {
        background: var(--primary);
        color: #fff;
        transform: scale(1.1);
    }
    .venue-badge {
        background: var(--rgba-primary-1);
        color: var(--primary);
    }
    .empty-state {
        text-align: center;
        padding: 4rem 2rem;
        background: var(--bg-white);
        border: 2px dashed var(--border-color);
    }
    .empty-state i {
        font-size: 4rem;
        color: var(--border-color);
    }
    
    /* Dark mode adjustments */
    .theme-dark .stat-card,
    .theme-dark .filter-section,
    .theme-dark .match-card {
        background: var(--card-bg);
    }
    .theme-dark .btn-filter {
        background: rgba(255, 255, 255, 0.1);
    }
    .theme-dark .action-btn {
        background: rgba(255, 255, 255, 0.1);
    }
    .theme-dark .team-progress {
        background: rgba(255, 255, 255, 0.05);
    }

    /* Venues page */
    .venue-highlight {
            animation: highlightPulse 2s ease-out;
            border-left: 4px solid var(--primary) !important;
        }
        
        @keyframes highlightPulse {
            0% { background-color: rgba(13, 119, 94, 0.2); }
            50% { background-color: rgba(13, 119, 94, 0.1); }
            100% { background-color: transparent; }
        }
        
        .loading-spinner {
            text-align: center;
            padding: 40px;
            display: none;
        }
        
        .loading-spinner i {
            font-size: 40px;
            color: var(--primary);
        }
        
        .loading-spinner.active {
            display: block;
        }
        
        .infinite-scroll-trigger {
            height: 20px;
            width: 100%;
            margin: 20px 0;
        }
        
        .empty-state {
            text-align: center;
            padding: 60px 20px;
            background: white;
            border-radius: 12px;
        }
        
        .empty-state i {
            font-size: 48px;
            color: #ddd;
        }
        
        .filter-badge {
            background: var(--primary);
            color: white;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
            margin-left: 8px;
        }
        
        /* Mobile optimized styles */
        @media (max-width: 768px) {
            .filter-section {
                padding: 12px;
            }
            
            .filter-row {
                gap: 10px;
            }
            
            .filter-col {
                width: 100%;
            }
            
            .search-input-group {
                width: 100%;
            }
            
            .filter-select {
                width: 100%;
                margin-bottom: 8px;
            }
            
            .active-filters {
                margin-top: 10px;
                padding: 8px 0;
            }
        }
        
        .cursor-pointer {
            cursor: pointer;
        }
        
        /* Search button styles */
        .search-btn {
            background-color: var(--primary);
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 0 8px 8px 0;
            transition: background-color 0.3s;
        }
        
        .search-btn:hover {
            background-color: var(--primary-dark);
        }
        
        .search-btn i {
            font-size: 16px;
        }
        
        /* Filter select styles */
        .filter-select {
            border: 1px solid var(--border-color);
            border-radius: 8px;
            padding: 10px 12px;
            background-color: white;
            width: 100%;
            transition: border-color 0.3s;
        }
        
        .filter-select:focus {
            outline: none;
            border-color: var(--primary);
        }