/* === Reset + font === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #e3f2fd, #f9fbe7);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #333;
}

/* === Container box === */
.container,
.admin-section {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 90%;
    text-align: center;
    animation: fadeIn 0.4s ease-in-out;
}

/* === Headings === */
h2, h3 {
    margin-bottom: 20px;
    color: #222;
}

/* === Forms === */
form input[type="text"],
form input[type="password"],
form input[type="date"] {
    width: 90%;
    padding: 12px 16px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
}

form input[type="text"]:focus,
form input[type="password"]:focus,
form input[type="date"]:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 4px rgba(0, 123, 255, 0.4);
}

form button {
    background: #007bff;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    margin-top: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
}

form button:hover {
    background: #0056b3;
}

/* === Logout === */
.logout-button {
    background-color: #dc3545 !important;
}

.logout-button:hover {
    background-color: #b02a37 !important;
}

/* === Links === */
a {
    color: #28a745;
    font-weight: bold;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* === Error message === */
.error {
    color: #d32f2f;
    font-weight: bold;
    margin-top: 15px;
}

/* === Table === */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th,
table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: center;
    font-size: 15px;
}

table th {
    background-color: #f1f1f1;
    font-weight: bold;
}

/* === Download box === */
.download-box {
    margin-top: 20px;
    padding: 16px 20px;
    background-color: #e6f9ec;
    border: 2px solid #28a745;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    color: #155724;
    display: inline-block;
    text-align: left;
    animation: fadeIn 0.4s ease-in-out;
}

.download-box a {
    color: #0c7c27;
    text-decoration: none;
}

.download-box a:hover {
    text-decoration: underline;
}

/* === Animations === */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-link {
    margin-top: 20px;
    font-size: 15px;
    text-align: center;
}

.nav-link a {
    color: #007bff;
    text-decoration: none;
}

.nav-link a:hover {
    text-decoration: underline;
}

.copy-btn {
    margin-top: 5px;
    padding: 5px 10px;
    font-size: 13px;
    background-color: #f0f0f0;
    border: 1px solid #aaa;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.copy-btn:hover {
    background-color: #e2e2e2;
}
