body {
    font-family: 'Inter', sans-serif;
    --bg-base: #000000;
    --bg-surface: #111111;
    --bg-input: #0A0A0A;
    --text-base: #999999;
    --text-title: #ffffff;
    --border-color: #222222;
}

.loader {
    border-top-color: var(--text-title);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#stars-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

::placeholder {
    color: #4a4a4a;
}

/* --- Panel Transitions --- */
.panel {
    transition: transform 0.3s ease-in-out;
    transform: translateX(100%);
}

.panel.open {
    transform: translateX(0);
}

.panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
    z-index: 40;
}

.panel-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* --- Scrollbar --- */
.history-list::-webkit-scrollbar {
    width: 6px;
}

.history-list::-webkit-scrollbar-track {
    background: var(--bg-surface);
}

.history-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.history-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}