/* Global Styles for the Body Element */
body {
    background: linear-gradient(135deg, #6a11cb, #2575fc); /* Gradient background */
    /* background-size: cover; */
    /*background-position: center;*/
    /*background-attachment: fixed;*/
    font-family: 'Arial', sans-serif;
    margin: 20px;
    padding: 0;
    /*height: auto;  /* Not fixed */
    overflow-y: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align top for form visibility */
    min-height: 100vh;
}

/* Glassmorphism Container */
.form-container {
    background: rgb(246, 247, 249); /* Semi-transparent background */
    backdrop-filter: blur(10px); /* Blur effect */
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2); /* Light border for depth */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2); /* Soft shadow */
    padding: 30px;
    width: 100%;
    max-width: 700px;
    margin: 20px;
    max-height: 90vh;  /* Prevent overflow but allow scrolling */
    overflow-y: auto;
}

/* Heading with Glassmorphism Effect */
h1 {
    text-align: center;
    color: #fef8f8;
    background: rgba(15, 7, 125, 0.7); /* Semi-transparent background */
    padding: 20px;
    margin: -30px -30px 20px -30px;
    border-radius: 15px 15px 0 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-size: 30px;
    backdrop-filter: blur(5px); /* Blur effect */
}

/* Form Styling */
form {
    padding-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 20px;
}

/* Label Styling */
label {
    font-weight: bold;
    margin-bottom: 8px;
    color: #000000; /* White text for better contrast */
    padding-left: 8px;
    padding-right: 8px;
}

/* Input and Select Fields */
input, select {
    padding: 13px;
    margin-bottom: 10px;
    border: 1px solid rgba(4, 4, 4, 0.3); /* Light border */
    border-radius: 8px;
    font-size: 18px;
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent background */
    color: #000000; /* White text */
    transition: border-color 0.3s ease, background 0.3s ease;
}

input::placeholder, select::placeholder {
    color: rgba(58, 56, 56, 0.7); /* Light placeholder text */
}

input:focus, select:focus {
    border-color: #007bff; /* Highlight on focus */
    background: rgba(255, 255, 255, 0.2); /* Slightly darker background */
    outline: none;
}

/* Date Input Styling */
input[type="date"] {
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.1);
    color: #070707;
}

/* Select Dropdown Styling */
.form-group select {
    padding: 12px;
    font-size: 18px;
}

/* Button Styling */
button {
    background: rgba(15, 7, 125, 0.8); /* Semi-transparent background */
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    width: 100%;
    box-sizing: border-box;
    transition: background 0.3s ease;
}

button:hover {
    background: rgba(218, 9, 9, 0.8); /* Hover effect */
}

/* Flash Message Styling */
.alert {
    padding: 10px;
    margin-bottom: 15px;
    background: rgba(249, 249, 249, 0.1); /* Semi-transparent background */
    border: 1px solid rgba(221, 221, 221, 0.3);
    border-radius: 8px;
    color: #b91616;
    font-weight: bold;
    font-size: 18px;
    text-align: center;
}

.alert.error {
    background: rgba(248, 215, 218, 0.1); /* Semi-transparent error background */
    border-color: rgba(245, 198, 203, 0.3);
    color: #ff6b6b; /* Light red text */
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-container {
        margin: 20px;
        padding: 20px;
    }

    h1 {
        font-size: 24px;
        padding: 15px;
    }

    input, select, button {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .form-container {
        margin: 10px;
        padding: 15px;
    }

    h1 {
        font-size: 20px;
        padding: 10px;
    }

    input, select, button {
        padding: 10px;
    }
}