/* history.css */
:root {
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    --card-bg: #ffffff;
    --accent-color: #3b82f6;
    --text-main: #1e293b;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 40px 20px;
    background: var(--bg-gradient);
    min-height: 100vh;
    color: var(--text-main);
}

.container {
    max-width: 700px;
    margin: auto;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 2rem;
    text-align: center;
    color: var(--text-main);
    margin-bottom: 5px;
}

h2 {
    font-size: 1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary-color);
    margin-bottom: 40px;
    font-weight: 600;
}

ul {
    list-style-type: none;
    padding: 0;
}

li {
    background: #ffffff;
    margin-bottom: 12px;
    padding: 16px 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column; /* Better for mobile responsiveness */
    gap: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: var(--accent-color);
}

/* Row layout for larger screens */
@media (min-width: 480px) {
    li {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.2s;
}

a:hover {
    color: #1d4ed8;
}

.timestamp {
    font-size: 0.85rem;
    color: var(--secondary-color);
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.empty-message {
    padding: 40px;
    background-color: #fffbeb;
    border: 1px dashed #f59e0b;
    border-radius: 15px;
    text-align: center;
    color: #b45309;
}
