/* History Modal Styles */

/* Overlay */
.history-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(3px);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.history-modal-overlay.open {
    display: flex;
    opacity: 1;
}

/* Modal Window - Centered Floating */
.history-modal {
    position: relative;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 2001;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.history-modal.open {
    transform: scale(1);
    opacity: 1;
}

/* Header */
.history-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background-color: #ffffff;
    /* Removed border-bottom for cleaner look, can add back if needed */
    flex-shrink: 0;
}

.history-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.02em;
}

.history-modal-title i {
    color: #64748b;
    /* More neutral icon color */
    font-size: 16px;
}

.history-modal-close-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 6px 12px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
}

.history-modal-close-btn:hover {
    background: #f1f5f9;
    color: #475569;
}

/* Body */
.history-modal-body {
    flex: 1;
    padding: 3px;
    overflow-y: auto;
    background: #ffffff;
}

/* History Table Wrapper */
.history-table-wrapper {
    margin: 5px;
}

/* History Time Column */
.history-time-column {
    flex: 0 0 150px;
    max-width: 150px;
    min-width: 150px;
}

/* Empty State */
.history-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #94a3b8;
    gap: 12px;
    padding: 40px;
}

.history-empty-state i {
    font-size: 32px;
    opacity: 0.5;
}

.history-empty-state p {
    font-size: 14px;
    margin: 0;
}