/* GENERAL STYLING */
body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    text-align: center;
    margin: 0;
    padding: 0;
}

/* MAIN CONTAINER */
.container {
    width: 80%;
    margin: auto;
    padding-top: 50px;
}

/* HEADERS */
h1, h2 {
    animation: fadeIn 2s ease-in-out;
    margin-bottom: 20px;
}

h1 {
    font-size: 28px;
    font-weight: bold;
}

h2 {
    font-size: 22px;
    text-transform: uppercase;
}

/* BUTTONS */
button, input[type="submit"], .print-button {
    background: #4CAF50;
    color: white;
    padding: 12px 20px;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
    margin: 10px;
    font-size: 16px;
    border-radius: 5px;
}

button:hover, input[type="submit"]:hover, .print-button:hover {
    transform: scale(1.1);
}

/* TABLE STYLES */
table {
    width: 90%;
    margin: 20px auto;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

th, td {
    padding: 12px;
    border: 1px solid white;
    text-align: center;
    font-size: 16px;
}

th {
    background: rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    font-weight: bold;
}

/* FORMS */
form {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    display: inline-block;
    text-align: left;
    width: 50%;
    margin-top: 20px;
}

input[type="text"], input[type="email"], input[type="password"], textarea, select, input[type="datetime-local"] {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: none;
    border-radius: 5px;
    font-size: 16px;
}

textarea {
    height: 80px;
}

label {
    font-weight: bold;
    display: block;
    margin-top: 10px;
}

/* LOGIN & REGISTER PAGES */
.auth-container {
    width: 50%;
    margin: auto;
    padding: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.2);
}

.auth-container h1 {
    font-size: 26px;
    margin-bottom: 20px;
}

.auth-container input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: none;
    border-radius: 5px;
    font-size: 16px;
}

/* LOGIN LINK IN REGISTER PAGE */
.auth-button {
    color: #ffcc00;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
}

.auth-button:hover {
    text-decoration: underline;
}

/* NOTIFICATIONS */
.notification {
    padding: 15px;
    margin: 10px auto;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    width: 80%;
    max-width: 600px;
    display: none;
}

.notification.success {
    background: #2ecc71;
    color: white;
}

.notification.error {
    background: #e74c3c;
    color: white;
}

/* LOGOUT BUTTON */
.logout-button {
    background: #d9534f;
}

/* ADMIN BUTTON */
.admin-button {
    background: #e74c3c;
    padding: 12px 20px;
}

.admin-button:hover {
    background: #c0392b;
}

/* BACK BUTTON */
.back-button {
    background: #f39c12;
    color: white;
    padding: 12px 20px;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
    font-size: 16px;
    border-radius: 5px;
    margin-top: 20px;
}

.back-button:hover {
    transform: scale(1.1);
    background: #e67e22;
}

/* FILE INPUT STYLING */
input[type="file"] {
    border: 2px solid #ddd;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
    border-radius: 5px;
    font-size: 14px;
    display: block;
    width: 100%;
    cursor: pointer;
}

input[type="file"]::file-selector-button {
    background: #3498db;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
    border-radius: 5px;
}

input[type="file"]::file-selector-button:hover {
    background: #2980b9;
}

/* DATEPICKER STYLING */
input[type="datetime-local"] {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #ddd;
    padding: 10px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

/* EDIT & DELETE BUTTONS */
.edit-button, .delete-button {
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
}

.edit-button {
    background: #3498db;
    color: white;
}

.edit-button:hover {
    background: #2980b9;
}

.delete-button {
    background: #e74c3c;
    color: white;
}

.delete-button:hover {
    background: #c0392b;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .container {
        width: 95%;
    }

    table {
        font-size: 14px;
    }

    form {
        width: 90%;
    }

    input[type="text"], input[type="email"], input[type="password"], textarea, select, input[type="datetime-local"] {
        font-size: 14px;
        padding: 10px;
    }

    .auth-container {
        width: 90%;
    }
}

/* ANIMATIONS */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}


/* AUTH FORMS */
.auth-container {
    width: 40%;
    margin: auto;
    padding: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.2);
}

.auth-button {
    color: #ffcc00;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
}

.auth-button:hover {
    text-decoration: underline;
}
