
.accontainer {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 20px;
    background: #f9fafb; /* Slightly off-white card background */
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}



h1 {
    color: #000000;
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

label {
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    color: #555; /* Subtle label color */
}

input[type="date"] {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background: #ffffff; /* White for input field */
    color: #333;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: border-color 0.3s ease;
}

input[type="date"]:focus {
    border-color: #2a5298; /* Focus effect */
    outline: none;
}

button {
    padding: 10px;
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(135deg, #2a5298, #1e3c72); /* Modern button gradient */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(30, 60, 114, 0.3);
}

/* Result Section */
.result {
    margin-top: 20px;
    background: #ffffff; /* White background for results */
    padding: 15px;
    border-radius: 8px;
    color: #333;
    text-align: left;
    font-size: 1rem;
    border: 1px solid #e0e6ed;
    animation: fadeIn 0.5s ease-in-out;
}

.result p {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #2a5298; /* Match header color */
}

.result ul {
    list-style: none;
    padding: 0;
}

.result ul li {
    margin: 5px 0;
    font-size: 1rem;
}

/* Error Message */
.error {
    margin-top: 15px;
    color: #d9534f; /* Rich red for error text */
    font-weight: bold;
    background: #fdf3f3; /* Light red background for error */
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    animation: shake 0.3s ease-in-out;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    50% {
        transform: translateX(5px);
    }
    75% {
        transform: translateX(-5px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .accontainer {
        margin: 20px 15px;
        padding: 15px;
    }

    h1 {
        font-size: 1.8rem; /* Adjust header size for smaller screens */
    }

    input[type="date"], button {
        font-size: 0.95rem; /* Slightly smaller input and button sizes */
        padding: 10px; /* Adjust padding */
    }

    .result p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .accontainer {
        padding: 10px;
    }

    h1 {
        font-size: 1.6rem; /* Even smaller header for very small screens */
    }

    input[type="date"], button {
        font-size: 0.9rem;
        padding: 8px;
    }

    .result {
        padding: 10px;
    }
}
