*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
}

body{

    background:linear-gradient(135deg,#2563eb,#7c3aed);

    min-height:100vh;

    display:flex;

    justify-content:center;

    align-items:center;

    padding:40px;

}

.container{

    width:850px;

    background:white;

    border-radius:25px;

    padding:50px;

    box-shadow:0 20px 50px rgba(0,0,0,.18);

    text-align:center;

    animation:fade .5s ease;

}

.logo{

    font-size:70px;

    margin-bottom:20px;

}

h1{

    font-size:46px;

    color:#1e293b;

}

.subtitle{

    margin-top:15px;

    font-size:18px;

    color:#64748b;

    line-height:1.7;

}

button{

    background:#2563eb;

    color:white;

    border:none;

    padding:16px 35px;

    border-radius:12px;

    margin-top:35px;

    cursor:pointer;

    font-size:17px;

    transition:.3s;

}

button:hover{

    background:#1d4ed8;

    transform:translateY(-3px);

}

input{

    width:100%;

    padding:15px;

    border-radius:12px;

    border:1px solid #ddd;

    margin-top:15px;

    font-size:16px;

}

table{

    width:100%;

    margin-top:25px;

    border-collapse:collapse;

}

th{

    background:#2563eb;

    color:white;

    padding:15px;

}

td{

    padding:15px;

    border-bottom:1px solid #eee;

    text-align:center;

}

table input{

    width:70px;

    text-align:center;

}

.criteria-item{

    display:flex;

    justify-content:space-between;

    align-items:center;

    background:#f8fafc;

    margin:12px 0;

    padding:15px;

    border-radius:12px;

}

.deleteBtn{

    width:35px;

    height:35px;

    border:none;

    background:#ef4444;

    color:white;

    border-radius:50%;

    cursor:pointer;

}

.templateButtons{

    display:flex;

    flex-wrap:wrap;

    gap:12px;

    justify-content:center;

    margin:25px 0;

}

.templateBtn{

    width:auto;

    padding:12px 18px;

}

@keyframes fade{

from{

opacity:0;

transform:translateY(20px);

}

to{

opacity:1;

transform:translateY(0);

}

}
.hero{

    display:flex;

    flex-direction:column;

    align-items:center;

}

.features{

    display:flex;

    gap:15px;

    margin:30px 0;

    flex-wrap:wrap;

    justify-content:center;

}

.features div{

    background:#eff6ff;

    color:#2563eb;

    padding:12px 20px;

    border-radius:30px;

    font-weight:bold;

}
/* ========================= */
/* PROGRESS BAR */
/* ========================= */

.progress-container{

    width:100%;

    margin-bottom:30px;

}

.progress-text{

    display:flex;

    justify-content:space-between;

    margin-bottom:10px;

    font-weight:bold;

    color:#475569;

}

.progress{

    width:100%;

    height:10px;

    background:#e2e8f0;

    border-radius:20px;

    overflow:hidden;

}

.progress-fill{

    height:100%;

    width:25%;

    background:linear-gradient(90deg,#2563eb,#7c3aed);

    border-radius:20px;

    transition:.4s;

}

/* ========================= */
/* WINNER CARD */
/* ========================= */

.winnerCard{

    text-align:center;

}

.winnerEmoji{

    font-size:80px;

}

.winnerName{

    color:#2563eb;

    font-size:40px;

    margin:20px 0;

}

.scoreContainer{

    display:flex;

    justify-content:center;

    gap:25px;

    margin:35px 0;

    flex-wrap:wrap;

}

.scoreBox{

    background:#f8fafc;

    padding:25px;

    border-radius:15px;

    min-width:180px;

    box-shadow:0 10px 20px rgba(0,0,0,.08);

}

.scoreBox h1{

    color:#2563eb;

    margin-top:10px;

}

/* ========================= */
/* SCORE BAR */
/* ========================= */

.bar{

    width:100%;

    height:12px;

    background:#e2e8f0;

    border-radius:20px;

    overflow:hidden;

    margin-top:15px;

}

.fill{

    height:100%;

    background:linear-gradient(90deg,#2563eb,#7c3aed);

    border-radius:20px;

    transition:width 1s ease;

}

/* ========================= */
/* INSIGHT CARD */
/* ========================= */

.insightCard{

    background:#eff6ff;

    border-radius:18px;

    padding:25px;

    margin:35px 0;

    text-align:left;

    box-shadow:0 8px 20px rgba(37,99,235,.12);

}

.insightCard h2{

    margin-bottom:20px;

    color:#2563eb;

}

.insight{

    display:flex;

    justify-content:space-between;

    padding:12px 0;

    border-bottom:1px solid #dbeafe;

}

.insight:last-child{

    border-bottom:none;

}

/* ========================= */
/* SMART RECOMMENDATION */
/* ========================= */

.recommendationCard{

    margin-top:30px;

    padding:25px;

    border-radius:18px;

    background:linear-gradient(135deg,#ede9fe,#dbeafe);

    text-align:left;

    box-shadow:0 10px 20px rgba(0,0,0,0.08);

}

.recommendationCard h2{

    color:#4f46e5;

    margin-bottom:15px;

}

.recommendationCard p{

    font-size:16px;

    line-height:1.8;

    color:#374151;

}

/* ========================= */
/* ANALYSIS CARD */
/* ========================= */

.analysisCard{

    margin-top:30px;

    padding:25px;

    border-radius:18px;

    background:#ffffff;

    box-shadow:0 10px 25px rgba(0,0,0,.08);

    text-align:left;

}

.analysisCard h2{

    color:#2563eb;

    margin-bottom:20px;

}

.analysisRow{

    display:flex;

    justify-content:space-between;

    padding:12px 0;

    border-bottom:1px solid #eee;

}

.analysisRow:last-child{

    border:none;

}

/* ========================= */
/* BUTTON GROUP */
/* ========================= */

.buttonGroup{

    display:flex;

    justify-content:center;

    gap:20px;

    margin-top:30px;

    flex-wrap:wrap;

}

.buttonGroup button{

    width:auto;

}

/* ========================= */
/* DARK MODE BUTTON */
/* ========================= */

#themeToggle{

    position:fixed;

    top:25px;

    right:25px;

    width:60px;

    height:60px;

    border-radius:50%;

    border:none;

    cursor:pointer;

    font-size:24px;

    background:white;

    box-shadow:0 10px 20px rgba(0,0,0,.2);

}

.dark{

    background:#0f172a !important;

}

.dark .container{

    background:#1e293b;

    color:white;

}

.dark h1{

    color:white;

}

.dark p{

    color:#cbd5e1;

}

.dark input{

    background:#334155;

    color:white;

    border:none;

}

.dark table{

    color:white;

}

.dark .scoreBox{

    background:#334155;

}

.dark .insightCard{

    background:#334155;

}

.dark .recommendationCard{

    background:#334155;

    color:white;

}

/* ========================= */
/* DARK MODE FIXES */
/* ========================= */

.dark .criteria-item{

    background:#334155;

    color:white;

}

.dark .criteria-item span{

    color:white;

}

.dark .templateBtn{

    background:#2563eb;

    color:white;

}

.dark .winnerCard{

    color:white;

}

.dark .analysisCard{

    background:#334155;

    color:white;

}

.dark .analysisRow{

    border-bottom:1px solid #475569;

}

.dark .analysisRow span,

.dark .analysisRow strong{

    color:white;

}

.dark td{

    color:white;

    border-bottom:1px solid #475569;

}

.dark th{

    background:#2563eb;

}

.dark table{

    border-color:#475569;

}

.dark input::placeholder{

    color:#cbd5e1;

}

footer{

    position:fixed;

    bottom:15px;

    left:0;

    width:100%;

    text-align:center;

    color:white;

    font-size:14px;

    opacity:.8;

}