/* Modern Setup Screen Styles */

/* Force hide old userInfo in setup screen */
#setupScreen .user-info {
    display: none !important;
}

/* Header */
.setup-page-header {
    background: linear-gradient(135deg, #ff5722 0%, #e64a19 100%);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-left h1 {
    color: white;
    font-size: 28px;
    margin: 0 0 5px 0;
    font-weight: 700;
}

.header-left .subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-nav {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.user-welcome {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.btn-logout-header {
    background: white;
    color: #ff5722;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-logout-header:hover {
    background: #f5f5f5;
    transform: translateY(-1px);
}

/* 2 Column Layout */
.setup-two-column {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 30px;
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 40px;
}

/* Left Column */
.setup-left-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.setup-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.card-title {
    font-size: 20px;
    color: #ff5722;
    margin: 0 0 25px 0;
    font-weight: 700;
}

.form-group {
    margin-bottom: 20px;
}

.setup-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.setup-input,
.setup-select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    background: white;
}

.setup-input:focus,
.setup-select:focus {
    outline: none;
    border-color: #ff5722;
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.1);
}

.form-hint {
    display: block;
    font-size: 13px;
    color: #666;
    margin-top: 6px;
}

/* Preset Buttons */
.preset-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.preset-btn {
    flex: 1;
    padding: 12px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.preset-btn:hover {
    border-color: #ff5722;
    background: #fff5f2;
}

.preset-btn.active {
    background: #ff5722;
    color: white;
    border-color: #ff5722;
}

/* Sponsors Grid */
.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.sponsor-upload-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sponsor-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.upload-preview.small {
    width: 100%;
    height: 80px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-preview.small:hover {
    border-color: #ff5722;
    background: #fff5f2;
}

.upload-text {
    font-size: 13px;
    color: #999;
}

.upload-container {
    position: relative;
}

.upload-preview {
    width: 100%;
    height: 120px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-preview:hover {
    border-color: #ff5722;
    background: #fff5f2;
}

.color-picker-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.color-input {
    width: 60px;
    height: 40px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
}

.color-label {
    font-size: 14px;
    font-weight: 600;
    color: #666;
}

/* Generate Button */
.btn-generate-modern {
    width: 100%;
    padding: 18px;
    background: #ff5722;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
}

.btn-generate-modern:hover {
    background: #e64a19;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.4);
}

.btn-icon {
    font-size: 20px;
}

/* Right Column - Preview */
.setup-right-column {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.preview-card-modern {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 2px solid #ff5722;
}

.preview-title-modern {
    font-size: 18px;
    color: #333;
    margin: 0 0 20px 0;
    font-weight: 700;
    text-align: center;
}

.preview-stats-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.stat-item-modern {
    text-align: center;
    padding: 15px;
    background: #fff5f2;
    border-radius: 10px;
}

.stat-label-modern {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.stat-value-modern {
    display: block;
    font-size: 24px;
    color: #ff5722;
    font-weight: 700;
}

.preview-bracket-visual {
    margin-bottom: 25px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    min-height: 200px;
}

.preview-format-info h4 {
    font-size: 15px;
    color: #333;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.format-list-modern {
    list-style: none;
    padding: 0;
    margin: 0;
}

.format-list-modern li {
    padding: 8px 0;
    color: #666;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

.format-list-modern li:last-child {
    border-bottom: none;
}

/* Teams Entered Section */
.teams-entered-section {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.teams-entered-section h4 {
    font-size: 15px;
    color: #333;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.teams-entered-list {
    max-height: 150px;
    overflow-y: auto;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 8px;
}

.empty-state {
    text-align: center;
    color: #999;
    font-size: 13px;
    margin: 0;
    padding: 20px;
}

/* Responsive */
@media (max-width: 1200px) {
    .setup-two-column {
        grid-template-columns: 1fr;
    }
    
    .setup-right-column {
        position: static;
    }
}

@media (max-width: 768px) {
    .setup-page-header {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        align-items: flex-start;
    }
    
    .header-left h1 {
        font-size: 22px;
    }
    
    .header-left .subtitle {
        font-size: 13px;
    }
    
    .header-right {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .btn-nav {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .user-welcome {
        font-size: 13px;
        flex: 1 1 100%;
        order: -1;
    }
    
    .btn-logout-header {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .setup-two-column {
        padding: 0 15px;
        gap: 20px;
    }
    
    .setup-card {
        padding: 20px;
    }
    
    .card-title {
        font-size: 18px;
    }
    
    .preset-buttons {
        flex-wrap: wrap;
    }
    
    .preset-btn {
        padding: 10px;
        font-size: 14px;
    }
    
    .sponsors-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-generate-modern {
        padding: 16px;
        font-size: 16px;
    }
    
    .btn-icon {
        font-size: 18px;
    }
    
    .preview-card-modern {
        padding: 20px;
    }
    
    .preview-title-modern {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .setup-page-header {
        padding: 15px;
    }
    
    .header-left h1 {
        font-size: 18px;
    }
    
    .setup-two-column {
        padding: 0 10px;
    }
    
    .setup-card {
        padding: 15px;
    }
    
    .setup-input,
    .setup-select {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .btn-generate-modern {
        padding: 14px;
        font-size: 15px;
    }
    
    .btn-icon {
        font-size: 16px;
    }
    
    .preview-card-modern {
        padding: 15px;
    }
}

