

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}


body {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Main Card */
.container {
    background-color: #1e293b;
    padding: 24px;
    border-radius: 12px;
    width: 90%;
    max-width: 650px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Heading */
h1 {
    text-align: center;
    font-size: 2.2rem;
    color: #38bdf8;
}

/* Username Section */
.user-container p {
    font-size: 1rem;
    opacity: 0.9;
}

.user-input-container {
    display: flex;
    gap: 10px;
}

#user-input {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: none;
    outline: none;
    font-size: 1rem;
}

#search-btn {
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    background-color: #38bdf8;
    color: #0f172a;
    font-weight: 600;
    transition: all 0.3s ease;
}

#search-btn:hover {
    background-color: #0ea5e9;
    transform: scale(1.05);
}

#search-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Progress Circles */
.progress {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(#22c55e var(--progress-degree, 0%), #1e293b 0%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-weight: bold;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.easy-progress { background: conic-gradient(#22c55e var(--progress-degree, 0%), #1e293b 0%); }
.medium-progress { background: conic-gradient(#facc15 var(--progress-degree, 0%), #1e293b 0%); }
.hard-progress { background: conic-gradient(#ef4444 var(--progress-degree, 0%), #1e293b 0%); }

.circle span {
    font-size: 1.1rem;
}

.circle p {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Stats Cards */
.stats-cards {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.card {
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: #0f172a;
    width: 48%;
    padding: 14px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card h4 {
    font-size: 0.95rem;
    opacity: 0.9;
}

.card p {
    font-size: 1.2rem;
    font-weight: bold;
}

.hidden {
    display: none;
}

/* Profile */
.profile {
    background-color: #0f172a;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.profile h3 {
    color: #38bdf8;
    margin-bottom: 5px;
}

.profile p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Acceptance Rate */
.acceptance {
    margin-top: 10px;
}

.acceptance-bar {
    width: 100%;
    height: 10px;
    background-color: #1e293b;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 5px;
}

.acceptance-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #22c55e, #4ade80);
    transition: width 1.5s ease;
}

#theme-toggle {
    align-self: flex-end;
    background: transparent;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
}

/* Light Theme */
body.light {
    background: #f1f5f9;
    color: #0f172a;
}

body.light .container {
    background-color: #ffffff;
    color: #0f172a;
}

body.light .card {
    color: #0f172a;
}

/* =====================
   COMPARE USERS
===================== */

.compare-container {
    background-color: #0f172a;
    padding: 15px;
    border-radius: 10px;
}

.compare-inputs {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.compare-inputs input {
    flex: 1;
    padding: 8px;
    border-radius: 6px;
    border: none;
}

#compare-btn {
    padding: 8px 14px;
    border-radius: 6px;
    border: none;
    background-color: #38bdf8;
    cursor: pointer;
    font-weight: bold;
}

.compare-result {
    margin-top: 15px;
    background-color: #1e293b;
    padding: 12px;
    border-radius: 8px;
}

.compare-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.win {
    color: #22c55e;
    font-weight: bold;
}

.lose {
    color: #ef4444;
}


/* Responsive */
@media (max-width: 600px) {
    .progress {
        justify-content: center;
    }
    .card {
        width: 100%;
    }
} 