* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container, .results-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

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

header h1 {
    font-size: 36px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

header p {
    font-size: 18px;
    opacity: 0.9;
}

small.hint {
    display: block;
    color: #666;
    font-size: 13px;
    margin-top: 5px;
    font-style: italic;
}

#predictionForm {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.team-section, .demographic-section, .prediction-section {
    margin-bottom: 30px;
}

.team-section h2, .demographic-section h2, .prediction-section h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 24px;
}

.demographic-section {
    background: #f0f4ff;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #667eea;
}

.description {
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
}

.team-members input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.team-members input:focus {
    outline: none;
    border-color: #667eea;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

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

.data-links {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.data-links h2 {
    color: #333;
    margin-bottom: 25px;
}

.link-box {
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    background: #f8f9fa;
}

.parallel-box {
    border-left: 5px solid #4CAF50;
}

.polarized-box {
    border-left: 5px solid #FF5722;
}

.link-box h3 {
    color: #333;
    margin-bottom: 15px;
}

.prediction-details {
    margin-bottom: 15px;
}

.prediction-details p {
    margin-bottom: 8px;
    color: #666;
}

.prediction-details strong {
    color: #333;
}

.gss-btn, .copy-btn {
    padding: 10px 20px;
    margin-right: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.gss-btn {
    background: #2196F3;
    color: white;
}

.gss-btn:hover {
    background: #1976D2;
}

.copy-btn {
    background: #607D8B;
    color: white;
}

.copy-btn:hover {
    background: #455A64;
}

.split-screen-section, .csv-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.split-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.split-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.csv-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.upload-section h3 {
    margin-bottom: 15px;
    color: #333;
}

.upload-section input[type="file"] {
    margin-bottom: 10px;
}

.upload-section button {
    padding: 10px 20px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.upload-section button:hover {
    background: #388E3C;
}

.navigation {
    text-align: center;
    margin-top: 30px;
}

.nav-btn {
    display: inline-block;
    padding: 12px 24px;
    margin: 0 10px;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.team-info {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 18px;
}

.hidden {
    display: none;
}

#dashboardLink {
    text-align: center;
    margin-top: 20px;
}

#dashboardLink a {
    color: white;
    font-size: 16px;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .csv-controls {
        grid-template-columns: 1fr;
    }

    header h1 {
        font-size: 28px;
    }

    .container, .results-container {
        padding: 20px 15px;
    }
}