/* General Body & Layout */
body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: #e0e7eb; /* Soft, muted background */
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #333; /* Darker text for readability */
}

/* Main Container */
.container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px; /* More rounded corners */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); /* Softer, larger shadow */
    width: 100%;
    max-width: 450px; /* Slightly wider for better spacing */
    text-align: center;
    box-sizing: border-box; /* Include padding in width */
}

/* Headings */
h2 {
    color: #2c3e50; /* Deep blue-grey for headings */
    margin-bottom: 25px;
    font-size: 1.8em;
    font-weight: 600; /* Slightly bolder */
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500; /* A bit more prominent */
    font-size: 0.95em;
}

input[type="text"],
input[type="password"],
input[type="date"],
select {
    width: 100%; /* Full width within its container */
    padding: 12px 15px;
    border: 1px solid #ced4da; /* Lighter, subtle border */
    border-radius: 8px; /* Matching rounded corners */
    margin-top: 5px;
    box-sizing: border-box;
    font-size: 1em;
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for focus */
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
select:focus {
    border-color: #007bff; /* Highlight on focus */
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25); /* Subtle glow on focus */
    outline: none; /* Remove default outline */
}

/* Buttons */
button, .btn {
    background-color: #007bff; /* Primary brand color */
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px; /* Matching rounded corners */
    cursor: pointer;
    font-size: 1.1em;
    margin-top: 15px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease; /* Smooth hover effects */
    font-weight: 600;
}

button:hover, .btn:hover {
    background-color: #0056b3; /* Darker shade on hover */
    transform: translateY(-2px); /* Slight lift effect */
}

button:active, .btn:active {
    transform: translateY(0); /* Return to original position on click */
}

/* Alerts */
.alert {
    background-color: #f8d7da; /* Light red for error */
    color: #721c24; /* Dark red text */
    padding: 12px;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95em;
    display: flex; /* For better icon/text alignment if needed */
    align-items: center;
    justify-content: center;
}

.alert-success {
    background-color: #d4edda; /* Light green for success */
    color: #155724; /* Dark green text */
    border-color: #c3e6cb;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: separate; /* Use separate for rounded corners on cells */
    border-spacing: 0; /* Remove space between borders */
    margin-top: 25px;
    background-color: #ffffff;
    border-radius: 8px; /* Rounded corners for the entire table */
    overflow: hidden; /* Ensures rounded corners are visible */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* Subtle table shadow */
}

table th, table td {
    border-bottom: 1px solid #eee; /* Lighter border between rows */
    padding: 12px 15px;
    text-align: left;
}

table th {
    background-color: #f8f9fa; /* Light grey header */
    color: #333;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9em;
}

table tr:last-child td {
    border-bottom: none; /* No border for the last row */
}

table tbody tr:hover {
    background-color: #f2f6f9; /* Subtle hover effect on rows */
}

/* Admin Panel Specific Styles */
.admin-panel {
    max-width: 1000px; /* Wider for admin content */
    padding: 30px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.admin-panel .nav {
    margin-bottom: 30px;
    display: flex;
    justify-content: center; /* Center navigation items */
    background-color: #f0f2f5; /* Lighter background for nav */
    padding: 12px;
    border-radius: 10px;
    gap: 15px; /* Space between nav items */
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05); /* Inner shadow for depth */
}

.admin-panel .nav a {
    text-decoration: none;
    color: #007bff;
    padding: 10px 20px;
    border-radius: 6px;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: 500;
}

.admin-panel .nav a:hover {
    background-color: #e2eaf0; /* Softer hover for nav */
    color: #0056b3;
}

.admin-panel .nav a.active { /* Class for active navigation link */
    background-color: #007bff;
    color: white;
    box-shadow: 0 2px 5px rgba(0, 123, 255, 0.3); /* Subtle shadow for active link */
}


.admin-panel .section {
    background-color: #fdfefe; /* Very light background for sections */
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    border: 1px solid #e9ecef; /* Subtle border */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* Light shadow for sections */
}

/* Utilities */
.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}