:root {
    --bg: #0b1020;
    --card: #121833;
    --text: #e6e8ef;
    --muted: #9aa3b2;
    --primary: #ec4899; /* Pink for love/compatibility */
    --primary-hover: #db2777;
    --secondary: #4f7cf7;
    --border: #1e2747;
    --success: #22c55e;
    --warning: #eab308;
    --danger: #ef4444;
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(1200px 600px at 50% 0%, #1a1033 0%, #0b1020 60%, #070b18 100%);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.5;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

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

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.9rem;
}

.input-control {
    width: 100%;
    padding: 12px;
    background: #0c1328;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.input-control:focus {
    outline: none;
    border-color: var(--primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.result-section {
    display: none;
}

.result-section.active {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.chart-container {
    height: 640px;
    width: 100%;
    position: relative;
    /* Add a subtle glow behind the chart to make it pop */
    background: radial-gradient(circle at center, rgba(236, 72, 153, 0.05) 0%, transparent 70%);
    border-radius: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .chart-container {
        height: 500px; /* Adjusted for mobile */
    }
}

.score-badge {
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    margin: 20px 0;
}

.dimension-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

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

.dim-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.dim-header h4 {
    margin: 0;
    color: var(--text);
}

.dim-score {
    font-weight: bold;
    color: var(--primary);
}

.progress-bar {
    height: 8px;
    background: #1f2937;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ec4899 0%, #8b5cf6 100%);
    border-radius: 4px;
    transition: width 1s ease-out;
}
