/* PANEL DE HISTORIAL */
.numbers,
.history-panel {
    transition: all 0.2s ease-in-out;
}

.history-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: #1c1c1c;
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    transition: height 0.4s ease;
    z-index: 20;
}

body.light-mode .history-panel {
    background-color: #f5f5f5;
    color: black;
}

.history-panel.active {
    height: 50%;
}

.history-handle {
    width: 40px;
    height: 5px;
    background-color: #444;
    border-radius: 2.5px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    cursor: ns-resize;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 10px;
    flex-shrink: 0;
}

.history-header span {
    font-size: 18px;
    font-weight: 600;
}

.history-header button {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
}

body.dark-mode .history-header button {
    color: var(--btn-right-dark);
}

body.light-mode .history-header button {
    color: var(--btn-right-light);
}

.history-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 0 20px;
}

#history-list {
    list-style: none;
}

.history-entry {
    text-align: right;
    padding: 10px 0;
    border-bottom: 1px solid #333;
    cursor: pointer;
}

.history-operation {
    font-size: 13px;
    color: #888;
    margin-bottom: 4px;
}

.history-result {
    font-size: 24px;
    font-weight: 500;
    color: white;
}

body.light-mode .history-operation {
    color: #666;
}

body.light-mode .history-result {
    color: black;
}

.empty-history-message {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: #888;
}

.empty-history-message i {
    font-size: 30px;
    margin-bottom: 10px;
}

.empty-history-message span {
    font-size: 16px;
}