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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

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

h1 {
    color: #333;
    margin-bottom: 10px;
}

header p {
    color: #666;
    font-size: 16px;
}

.section {
    margin-bottom: 20px;
}

.hidden {
    display: none;
}

.question-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.question-card:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.question-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.slider-group {
    flex: 1;
    margin-bottom: 0;
    transition: opacity 0.3s;
}

.dont-know-btn {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e9ecef;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.dont-know-btn:hover {
    border-color: #999;
    color: #333;
}

.dont-know-btn.active {
    background: #ffc107;
    color: #000;
    border-color: #ffc107;
    font-weight: 600;
}

.slider-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
}

.slider-value {
    font-weight: 600;
    color: #667eea;
}

input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #d3d3d3;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
}

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

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

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

.chart-container {
    position: relative;
    height: 700px;
    margin: 30px 0;
}

#scores-summary,
#weighted-summary,
#compatibility-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 0;
}

.score-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.score-item:last-child {
    border-bottom: none;
}

.score-label {
    font-weight: 500;
    color: #333;
}

.score-value {
    font-weight: 600;
    color: #667eea;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e9ecef;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    margin-bottom: -2px;
}

.tab-btn:hover {
    color: #667eea;
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.copy-btn {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 24px;
    margin-bottom: 20px;
    display: block;
    width: 100%;
}

.copy-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

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

.copy-btn.copied {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

#priorities-charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
}

.priority-chart-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 2px solid #e9ecef;
    width: 100%;
}

.priority-chart-card h4 {
    text-align: center;
    color: #333;
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 600;
}

.priority-chart-wrapper {
    position: relative;
    height: 350px;
    max-width: 350px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    #priorities-charts-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 20px;
    }

    .question-card {
        padding: 16px;
    }

    .slider-container {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .dont-know-btn {
        width: 100%;
    }

    .tabs {
        flex-direction: column;
        gap: 0;
        border-bottom: none;
    }

    .tab-btn {
        border-bottom: 1px solid #e9ecef;
        border-left: 3px solid transparent;
        text-align: left;
        margin-bottom: 0;
    }

    .tab-btn.active {
        border-bottom-color: #e9ecef;
        border-left-color: #667eea;
    }
}
