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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #2c3e50, #34495e); /* Darker gradient */
    color: #fff;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow: hidden;
}

.container {
    background: linear-gradient(135deg, #2c3e50, #34495e); /* Darker background for the form container */
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 700px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); /* Slightly darker shadow for depth */
}

h1 {
    text-align: center;
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 30px;
    font-weight: bold;
    letter-spacing: 1px;
}

form {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
    gap: 15px; /* Adds space between form elements */
}

input[type="text"], input[type="date"] {
    padding: 14px;
    font-size: 16px;
    border: 2px solid #ccc;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.15); /* Darker background for input fields */
    color: #fff;
    transition: all 0.3s ease;
    outline: none;
}

input[type="text"]:focus, input[type="date"]:focus {
    border-color: #4CAF50;
    background-color: rgba(255, 255, 255, 0.2); /* Slightly brighter focus background */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
}

button {
    padding: 14px;
    background-color: #4CAF50;
    color: white;
    border: none;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

button:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Add shadow to the table */
}

table th, table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
}

table th {
    background-color: #4CAF50;
    color: white;
    font-size: 16px;
    font-weight: bold;
}

table tr:nth-child(even) {
    background-color: #2c3e50;
}

table tr:nth-child(odd) {
    background-color: #34495e;
}

table tr:hover {
    background-color: rgba(0, 0, 0, 0.1); /* Subtle hover effect */
    transform: translateX(5px);
    transition: all 0.3s ease;
}

button.delete {
    background-color: #e74c3c;
    padding: 8px 16px;
    color: white;
    font-size: 14px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 5px;
}

button.delete:hover {
    background-color: #c0392b;
    transform: scale(1.05);
}

/* Remove animations for the table */
@keyframes gradientAnimation {
    0% {
        background: linear-gradient(135deg, #2c3e50, #34495e);
    }
    25% {
        background: linear-gradient(135deg, #2c3e50, #34495e);
    }
    50% {
        background: linear-gradient(135deg, #2c3e50, #34495e);
    }
    75% {
        background: linear-gradient(135deg, #2c3e50, #34495e);
    }
    100% {
        background: linear-gradient(135deg, #2c3e50, #34495e);
    }
}
