* {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", sans-serif;
    box-sizing: border-box;
}

body {
    background: #0f0f11;
    color: #eee;
    min-height: 100vh;
    padding: 20px;
}

header h1 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 32px;
    font-weight: 600;
}

.control-panel {
    width: 95%;
    margin: 0 auto 20px auto;
    display: flex;
    justify-content: space-between;
    padding: 20px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.btn-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.btn-group button {
    padding: 10px 18px;
    background: #2b2b30;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 15px;
    transition: 0.2s;
}
.btn-group button:hover {
    background: #3a3a40;
}

.primary {
    background: #2463eb;
}

.primary:hover {
    background: #1f4fc7;
}

#historyBtn.active-history {
    border: 1px solid #4caf50;
    color: #4caf50;
}

#barContainer {
    height: 420px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 2px;
    margin: 20px auto;
}

.bar {
    background: linear-gradient(to top, #2b7cff, #73aaff);
    width: 8px;
    border-radius: 4px 4px 0 0;
    transition: height 0.1s ease;
}

.bar.active {
    background: #ff4d4d;
}


select {
    background-color: #1c1c1e;
    color: #eee;
    padding: 6px;
    border-radius: 6px;
    border: solid 1px #555;
}

select option {
    background-color: #1c1c1e;
    color: #eee;
}




#benchmarkBox {
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.modal {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 100vw;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal.hidden {
    display: none;
}

.modal-content {
    width: 500px;
    padding: 20px;
    background: #1c1c20;
    border-radius: 12px;
    text-align: center;
}

.modal-content ul {
    list-style: none;
    margin: 15px 0;
    max-height: 300px;
    overflow-y: auto;
}

.modal-content li {
    padding: 6px;
    border-bottom: 1px solid #333;
}

.modal-content button {
    margin-top: 10px;
    padding: 8px 12px;
    background: #303036;
    color: #eee;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.modal-content button:hover {
    background: #3b3b42;
}