/* History Modal Styles */
.history-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.history-modal.show {
    display: flex;
}

.history-modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    min-width: 500px;
    max-height: 80vh;
    min-height: 400px;
    overflow-y: auto;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 15px;
}

.history-title {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.history-close {
    font-size: 28px;
    font-weight: bold;
    color: #95a5a6;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.history-close:hover {
    color: #e74c3c;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-item {
    padding: 15px;
    border-left: 4px solid #3498db;
    background-color: #f8f9fa;
    border-radius: 4px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.history-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
}

.history-date {
    font-size: 12px;
    color: #7f8c8d;
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.history-desc {
    font-size: 14px;
    color: #2c3e50;
    line-height: 1.6;
    font-weight: 500;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* History Button in Sidebar */
.history-button {
    width: 100%;
    padding: 10px 20px;
    margin-top: 10px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: background-color 0.2s;
}

.history-button:hover {
    background-color: #2980b9;
}

.history-button:active {
    transform: scale(0.98);
}

/* Scrollbar styling for history modal */
.history-modal-content::-webkit-scrollbar {
    width: 6px;
}

.history-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.history-modal-content::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 3px;
}

.history-modal-content::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}
