/* Shared styles across all pages */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.history-item {
    transition: all 0.2s ease;
}

.history-item:hover {
    transform: translateX(5px);
}

.key:focus {
    outline: 2px solid #4f46e5;
    outline-offset: 2px;
}

#calculator {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.dark #calculator {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .history-item:hover {
        transform: none;
    }
}

/* Animation for new history items */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.history-item.new-item {
    animation: fadeIn 0.3s ease-out;
}

/* Scrollbar styling */
#history-container::-webkit-scrollbar {
    width: 8px;
}

#history-container::-webkit-scrollbar-track {
    background: transparent;
}

#history-container::-webkit-scrollbar-thumb {
    background-color: #d1d5db;
    border-radius: 4px;
}

.dark #history-container::-webkit-scrollbar-thumb {
    background-color: #4b5563;
}