/* Tournament Header & Dropdown Styles - Reusable .tournament-select-box {
    background: white;
    border: 2px solid #d1d5db;
    border-radius: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.1);
    pointer-events: auto;
}

/* Tournament Header Layout */
.tournament-header {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tournament-header-content {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.tournament-selector-section {
    flex: 1;
    min-width: 300px;
}

.tournament-info-section {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

/* Tournament Dropdown Styles */
.tournament-selector-wrapper {
    position: relative;
}

.selector-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tournament-dropdown-container {
    position: relative;
}

.tournament-select-box {
    background: white;
    border: 2px solid #bbf7d0;
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.1);
}

.tournament-select-box:hover {
    border-color: #16a34a;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.2);
    transform: translateY(-1px);
}

.tournament-select-box.active {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: white;
}

.tournament-select-box.active .tournament-text {
    color: white;
}

.selected-tournament {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.tournament-icon {
    font-size: 1.2em;
    margin-right: 12px;
}

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

.arrow-icon {
    transition: transform 0.3s ease;
    color: #16a34a;
}

.tournament-select-box.active .arrow-icon {
    transform: rotate(180deg);
    color: white;
}

.tournament-dropdown-container .tournament-options-list {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04) !important;
    z-index: 9999 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-8px) scale(0.98) !important;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
    max-height: 400px !important;
    overflow: hidden !important;
    margin-top: 4px !important;
    border: 1px solid #bbf7d0 !important;
    display: block !important;
}

.tournament-dropdown-container .tournament-options-list.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
    display: block !important;
}

.search-box {
    padding: 16px;
    border-bottom: 1px solid #f0f2f5;
    background: #f0fdf4;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    color: #16a34a;
    font-size: 0.9em;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border: 2px solid #bbf7d0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.options-container {
    max-height: 300px;
    overflow-y: auto;
    padding: 8px 0;
}

.tournament-option {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
    position: relative;
    color: #1f2937;
    background: white;
}

.tournament-option:hover {
    background: linear-gradient(90deg, #f0fdf4 0%, #dcfce7 100%);
    border-left-color: #16a34a;
    color: #166534;
}

.tournament-option.active {
    background: linear-gradient(90deg, #dcfce7 0%, #bbf7d0 100%);
    border-left-color: #16a34a;
    color: #166534;
    font-weight: 600;
}

.option-icon {
    font-size: 1.1em;
    margin-right: 12px;
    opacity: 0.8;
}

.option-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #1f2937;
    font-size: 0.95rem;
    font-weight: 500;
}

.check-icon {
    color: #16a34a;
    font-size: 0.9em;
    animation: checkPulse 0.6s ease;
}

@keyframes checkPulse {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.no-options {
    padding: 30px 20px;
    text-align: center;
    color: #999;
    background: #f0fdf4;
}

.no-options i {
    font-size: 2em;
    margin-bottom: 10px;
    display: block;
    opacity: 0.5;
}

/* Tournament Info Panel */
.tournament-info-panel {
    background: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #bbf7d0;
    height: fit-content;
}

.tournament-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-item i {
    color: #16a34a;
    font-size: 1.1em;
}

.stat-label {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

.stat-value {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.95rem;
}

.stat-divider {
    width: 1px;
    height: 24px;
    background: linear-gradient(to bottom, transparent, #bbf7d0, transparent);
}

/* Page Title Section */
.page-title-section {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 24px;
}

.page-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.page-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 500;
    margin: 8px 0 0 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tournament-header {
        padding: 16px;
    }
    
    .tournament-header-content {
        flex-direction: column;
        gap: 16px;
    }
    
    .tournament-selector-section,
    .tournament-info-section {
        min-width: 100%;
    }
    
    .tournament-stats {
        justify-content: center;
        gap: 16px;
    }
    
    .stat-divider {
        display: none;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .tournament-header {
        padding: 12px;
        margin-bottom: 16px;
    }
    
    .tournament-stats {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .page-title-section {
        padding: 24px 16px;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
}
