body {
    margin: 0;
    font-family: Arial;
    background: #1a1a3a;
    color: white;
    transition: background 0.6s;
}

header {
    text-align: center;
    margin: 20px;
}

.container {
    width: 90%;
    max-width: 900px;
    margin: auto;
}

.top-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.card {
    background: white;
    color: black;
    padding: 20px;
    border-radius: 10px;
}

.search-box {
    display: flex;
    gap: 10px;
}

input {
    flex: 1;
    padding: 10px;
}

button {
    padding: 10px;
    cursor: pointer;
    border: none;
    background: orange;
    color: white;
    border-radius: 5px;
}

#clearHistory {
    background: red;
}

.history-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.chip {
    background: orange;
    padding: 5px 10px;
    border-radius: 15px;
    cursor: pointer;
    color: white;
}

.console-section {
    background: black;
    color: #58a6ff;
    margin-top: 20px;
}

.log-entry {
    margin: 5px 0;
}

.dark-mode {
    background-color: #111;
    color: white;
}

.dark-mode .card {
    background-color: #1e1e1e;
    color: white;
}

header {
    position: relative;
    /* important */
    text-align: center;
    margin: 20px;
}

/* TOGGLE BUTTON POSITION FIX */
.toggle-btn {
    position: absolute;
    right: 20px;
    top: 10px;
    background: orange;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* OPTIONAL HOVER EFFECT */
.toggle-btn:hover {
    background: #ff9f1a;
}