

:root {
    --bg-main: #121212;
    --bg-card: #1e1e1e;
    --bg-card-2: #222;
    --text-main:#ffffff;
    --border-color: #333;
}

.light-mode {
    --bg-main: #f5f5f5;
    --bg-card: #1e1e1e;
    --bg-card-2: #222;
    --text-main: #111111;
    --border-color: #ddd;
}


body {
    background: var(--bg-main);
    color: var(--text-main);
    font-family: Arial, sans-serif;
    padding: 20px;
    transition: 0.3s ease;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
}

.mode-btn{
    display: block;
    margin: 10px auto 30px auto;
    padding: 8px 20px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    background: #1e90ff;
    color: #fff;
    transition: 0.3s ease;
}

form {
    background: #1e1e1e;
    padding: 25px;
    border-radius: 15px;
    max-width: 500px;
    margin: 0 auto 30px auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

form label{
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 14px;
    color: #ccc;
}

form input[type="number"] {
    margin-top: 6px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #333;
    background: #2a2a2a;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

form input[type="number"]:focus{
    outline: none;
    border: 1px solid #1e90ff;
    box-shadow: 0 0 8px rgba(30, 144, 255, 0.6);
}

.checkbox-container{
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
    position: relative;
    user-select: none;
}

.checkbox-container input{
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark{
    width: 20px;
    height: 20px;
    background: #2a2a2a;
    border: 2px solid #444;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.checkbox-container input:checked ~ .checkmark{
    background: #1e90ff;
    border-color: #1e90ff;
}

.checkmark::after {
    content: "";
    position: absolute;
    /* display: none; */
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transform-origin: center;
    top: 50%;
    left: 50%;
    margin-top: -7px;
    margin-left: -3px;
    transition: transform 0.2s ease;
}

.checkbox-container input:checked ~ .checkmark::after {
    display: block;
    transform: rotate(45deg) scale(1.2);
    margin-top: 1px;
    margin-left: 0.5px;
}

.checkbox-container .checkmark::after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate (45deg);
}

.checkbox-container:hover .checkmark{
    border-color: #1e90ff;
}

form button{
    width: 100%;
    margin-top: 15px;
    padding: 12px;
    border-radius: 10px;
    border: none;
    font-size: 16px;
    font-weight: bold;
    background: linear-gradient(45deg, #1e90ff, #00bfff);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

form button:hover{
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 191, 255, 0.5);
}

/* main layout */
.app-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
}

/* left */
.form-section{
    background: var(--bg-card);
    color: var(--text-main);
    border-color: var(--border-color);
    transition: 0.3s ease;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    height: fit-content;
}

/* right */
.results-section{
    background: var(--bg-card);
    color: var(--text-main);
    border-color: var(--border-color);
    transition: 0.3s ease;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* result grid */
#results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.year-card{
    border: 2px solid #444;
    border-radius: 15px;
    padding: 15px;
    margin: 10px 0;
    background: var(--bg-card);
    color: var(--text-main);
    border-color: var(--border-color);
    transition: transform 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.year-card.visible{
    opacity: 1;
    transform: translateY(0);
}

.year-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.score {
    display: inline-block;
    margin-right: 15px;
    font-weight: bold;
}

.summary-card {
    margin-top: 30px;
    padding: 25px;
    background: var(--bg-card);
    color: var(--text-main);
    border-color: var(--border-color);
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.6s ease forwards;
}

.summary-card h2{
    margin-bottom: 15px;
}

.summary-card hr {
    margin: 15px 0;
    border: 1px solid #333;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.score.wealth { color: #ffd700; }
.score.health { color: #32cd32; }
.score.mental { color: #1e90ff; }
.score.career { color: #ff4500; }




@media (max-width: 900px) {
    .app-container {
        grid-template-columns: 1fr;
    }
}