/* Color Palette */
:root {
    --bg-color: #121212; /* Black hade */
    --card-bg: #1e1e1e;
    --text-primary: #e0e0e0;
    --accent-blue: #38bdf8; /* Neon blue highlight */
    --accent-red: #ef4444;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: #121212; /* Fallback hade */
    background-image: url('background.png'); /* The new background */
    background-size: cover; /* Ensures it fills the screen */
    background-position: center; /* Keeps UI aligned with the floating card look */
    /* ... other settings ... */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.main-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    text-align: center;
    width: 400px;
    border: 1px solid rgba(255,255,255,0.05); /* Subtle border */
}

.glow-text {
    color: var(--accent-blue);
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
    margin-bottom: 25px;
}

.input-group { margin-bottom: 25px; text-align: left; }
.input-group label { display: block; margin-bottom: 10px; font-weight: bold; }

input[type="date"] {
    width: 100%;
    padding: 12px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
}

.btn-calculate {
    width: 100%;
    padding: 12px;
    background-color: var(--accent-blue);
    color: #000;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-calculate:hover { background-color: #7dd3fc; transform: translateY(-2px); }

.result-box {
    padding: 15px;
    background: rgba(56, 189, 248, 0.1);
    border-radius: 10px;
    border-left: 4px solid var(--accent-blue);
    color: var(--accent-blue);
    text-align: left;
}

/* History Styles */
.history-section h3 { color: #444; margin-bottom: 15px; }
#history-table { width: 100%; font-size: 0.9rem; }
#history-table td { padding: 8px 0; color: #666; }

.btn-clear {
    font-size: 0.8rem;
    background: none;
    border: none;
    color: var(--accent-red);
    cursor: pointer;
}