/* Basic reset and font */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 20px;
}

h1, h2 {
    color: #1c1e21;
    border-bottom: 2px solid #f0f2f5;
    padding-bottom: 10px;
}

/* Card style for each section */
.card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 20px;
}

/* Dashboard */
#user-count {
    font-size: 1.5em;
    font-weight: 600;
    color: #007bff;
}

/* Form styling */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.form-group input {
    width: 95%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

/* Button styles */
.btn {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.btn-add {
    background-color: #007bff;
    color: white;
}
.btn-add:hover {
    background-color: #0056b3;
}

.btn-delete {
    background-color: #dc3545;
    color: white;
    margin-left: 10px;
}
.btn-delete:hover {
    background-color: #c82333;
}

/* User list styling */
#users {
    list-style-type: none;
    padding: 0;
}

#users li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #eee;
}

#users li:last-child {
    border-bottom: none;
}

#users li .user-info {
    font-weight: 500;
}
/* --- ADD THESE STYLES --- */

/* Login Page */
.login-container {
    max-width: 400px;
    margin: 100px auto;
}

#login-error {
    color: #dc3545;
    margin-top: 10px;
    font-weight: 500;
}

/* Header for Admin and Dashboard */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f2f5;
}

/* User Details List */
.user-details {
    list-style: none;
    padding: 0;
}
.user-details li {
    padding: 8px 0;
    font-size: 1.1em;
}

/* --- (Rest of your original CSS) --- */