/* === admin.css (UPDATED) === */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    margin: 0;
    padding: 0;
}

.login-container {
    max-width: 420px;
    margin: 6rem auto;
    padding: 2.5rem;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h2 {
    margin-bottom: 0.5rem;
    color: #111;
}

.login-header p {
    color: #666;
    font-size: 0.95rem;
}

.login-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    text-align: center;
}

.login-footer p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.login-footer code {
    background-color: #f5f5f5;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #007bff;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    background-color: #fff;
    border-bottom: 2px solid #ddd;
}

.dashboard-nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    display: flex;
    gap: 1rem;
}

.dashboard-nav .nav-link {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.dashboard-nav .nav-link:hover {
    background-color: #f0f0f0;
    color: #333;
}

.dashboard-nav .nav-link.active {
    background-color: #007bff;
    color: #fff;
}

.dashboard-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.dashboard-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

h1, h2 {
    color: #111;
    margin: 0;
}

.form-card, .list-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 2rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

input[type="text"],
input[type="password"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

textarea {
    font-family: inherit;
    resize: vertical;
}

.btn {
    background-color: #007bff;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #0056b3;
}

.btn-danger {
    background-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.form-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.message {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.message.success {
    color: green;
}

.message.error {
    color: red;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
}

table thead {
    background-color: #f8f9fa;
}

table th {
    text-align: left;
    padding: 1rem;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

table td {
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
}

table tbody tr:hover {
    background-color: #f8f9fa;
}

.table-actions {
    display: flex;
    gap: 0.5rem;
}

.table-actions button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.table-actions button:hover {
    background-color: #e9ecef;
}

@media (max-width: 900px) {
    .dashboard-container {
        grid-template-columns: 1fr;
    }
    
    .dashboard-nav {
        flex-wrap: wrap;
    }
}