body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to right bottom, #6a11cb, #2575fc);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    color: #fff;
    font-size: 16px;
}

.container {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 600px;
    width: 90%;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

h1 {
    font-size: 2.8em;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.description {
    font-size: 1.1em;
    margin-bottom: 30px;
    opacity: 0.9;
}

.input-section {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

label {
    font-size: 1.1em;
    font-weight: 600;
}

.date-input {
    padding: 12px 18px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    width: 100%;
    max-width: 250px;
    box-sizing: border-box;
    outline: none;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
}

.date-input:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

button {
    background-color: #ff6b6b;
    color: #fff;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

button:hover {
    background-color: #e63946;
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

.result-section {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 25px;
    border-radius: 12px;
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    transition: all 0.5s ease-in-out;
    transform: translateY(20px);
    opacity: 0;
}

.result-section.visible {
    transform: translateY(0);
    opacity: 1;
}

.weton-card {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.weton-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.3);
}

.weton-card p:first-child {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 0.9em;
    opacity: 0.8;
}

.weton-value {
    font-size: 1.8em;
    font-weight: 700;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.weton-card.primary {
    background-color: rgba(255, 107, 107, 0.4);
    border-color: rgba(255, 107, 107, 0.6);
}

.weton-card.primary .weton-value {
    color: #fff;
}

.error-message {
    background-color: rgba(255, 0, 0, 0.2);
    color: #ffe6e6;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: opacity 0.4s ease, height 0.4s ease;
}

.error-message.visible {
    opacity: 1;
    height: auto;
    padding: 15px;
    /* ensure padding is applied when visible */
}

.hidden {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 30px;
    }

    h1 {
        font-size: 2.2em;
    }

    .description {
        font-size: 1em;
    }

    button {
        padding: 12px 24px;
        font-size: 1em;
    }

    .result-section {
        grid-template-columns: 1fr;
        /* Stack cards on small screens */
    }

    .weton-card {
        padding: 15px;
    }

    .weton-value {
        font-size: 1.5em;
    }
}