/* History Info Section Styles */
/* This file contains styles for the timer history info section */

/* Bottom Info Section */

/* Info Section Container */
.history-info-section {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    border-top: 1px solid rgba(128, 128, 128, 0.25);
    padding: 1em;
    z-index: 1004;
}

/* Info Header */
.history-info-header {
    margin-bottom: 0.5em;
}

.history-info-icon { /* Info icon */
    width: auto;
    height: 28px;
    opacity: 0.5;
}

/* Info Content */
.history-info-content {
    display: flex;
    flex-direction: column;
}

.history-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'ABCDiatypeSemi-Mono', monospace;
}

.history-info-item + .history-info-item {
    margin-top: 0.25em;
}

.history-info-label {
    color: #808080;
    font-size: 0.875em;
    text-transform: uppercase;
}

.history-info-value {
    color: black;
    font-size: 0.875em;
    text-transform: uppercase;
}

/* Timer reset */

/* Divider */
.history-info-divider {
    height: 1px;
    background-color: rgba(128, 128, 128, 0.25);
    margin: 1em 0em 1em 0em;
    display: none; /* Hidden by default, shown when there's history data */
}

/* Reset Button Container */
.history-reset-container {
    text-align: left;
    display: none; /* Hidden by default, shown via JS when there's history data */
}

/* Reset Button */
.history-reset-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: inline-block;
    width: auto;
    /* Independent font settings */
    font-family: 'ABCDiatypeSemi-Mono', monospace;
    font-size: 1em;

}

.history-reset-text {
    /* Inherit from button, not from info-section */
    font-family: inherit;
    font-size: inherit;
    color: black;
    text-decoration: underline;
}

.history-reset-btn:hover .history-reset-text {
    color: white;
    background-color: black;
}


/* Dark Mode Styles */
body.dark-mode .history-info-section {
    background-color: black;
    border-top: 1px solid rgba(128, 128, 128, 0.25);
}

body.dark-mode .history-info-icon {
    filter: invert(1); /* Invert black icon to white in dark mode */
}

body.dark-mode .history-info-label {
    color: #808080;
}

body.dark-mode .history-info-value {
    color: white;
}

body.dark-mode .history-reset-text {
    color: white;
}

body.dark-mode .history-reset-btn:hover .history-reset-text {
    color: black;
    background-color: white;
}
