.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-size: 48px;
    color: var(--gold);
    text-shadow: 2px 2px 4px var(--shadow);
    margin-bottom: 10px;
}

.subtitle {
    font-size: 20px;
    color: var(--white);
    opacity: 0.9;
}

.setup-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px var(--shadow);
    backdrop-filter: blur(10px);
}

.setup-section h2 {
    color: var(--gold);
    font-size: 24px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 10px;
}

#teams-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
}

.team-input {
    display: flex;
    gap: 10px;
    align-items: center;
}

.team-name {
    flex: 1;
    padding: 12px;
    font-size: 16px;
}

.remove-team {
    padding: 10px 20px;
    background: var(--danger);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.remove-team:hover {
    background: #D32F2F;
}

.grid-config {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.config-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.config-item label {
    color: var(--gold);
    font-weight: bold;
    font-size: 14px;
}

.config-item input {
    width: 100%;
}

.file-upload {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.load-saved {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.load-saved label {
    color: var(--gold);
    font-weight: bold;
    min-width: 180px;
}

.load-saved select {
    flex: 1;
    min-width: 200px;
}

.file-upload label {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary-blue);
    color: var(--white);
    border: 2px solid var(--gold);
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.file-upload label:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow);
}

#file-status {
    color: var(--white);
    font-size: 14px;
}

.sample-data {
    text-align: center;
}

.customization {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.custom-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.custom-item label {
    min-width: 150px;
    color: var(--gold);
    font-weight: bold;
}

.custom-item input[type="file"] + label {
    display: inline-block;
    padding: 8px 16px;
    background: var(--dark-blue);
    color: var(--white);
    border: 1px solid var(--gold);
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.rules-config {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rule-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.rule-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.rule-item label {
    color: var(--gold);
    font-weight: bold;
    cursor: pointer;
    flex-shrink: 0;
}

.rule-description {
    color: var(--light-gray);
    font-size: 14px;
    opacity: 0.9;
    margin-left: auto;
}

.action-buttons {
    text-align: center;
    margin-top: 40px;
}

#start-game {
    font-size: 20px;
    padding: 15px 40px;
    animation: pulse 2s infinite;
}

@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }
    
    header h1 {
        font-size: 36px;
    }
    
    .grid-config {
        grid-template-columns: 1fr;
    }
    
    .custom-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* File input styling */
.file-input {
    display: block !important;
    width: 60%;
    padding: 8px;
    background: var(--dark-blue);
    color: var(--white);
    border: 2px solid var(--gold);
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 5px;
}

.file-input:hover {
    background: var(--primary-blue);
}

.file-input::file-selector-button {
    background: var(--gold);
    color: var(--dark-blue);
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
    margin-right: 10px;
}

.file-input::file-selector-button:hover {
    background: #FFE082;
}