/* General Styles */
.error-message,
.form-error {
    color: var(--danger-color);
    margin-top: 10px;
    padding: 8px;
    background-color: rgba(231, 76, 60, 0.1);
    border-radius: 4px;
}

.success-message,
.form-success {
    color: var(--success-color, #27ae60);
    margin-top: 10px;
    padding: 8px;
    background-color: rgba(39, 174, 96, 0.1);
    border-radius: 4px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    box-sizing: border-box; /* as wide as the selects next to it */
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    background-color: var(--surface-2);
    color: var(--text-color);
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
}

.form-actions {
    margin-top: 30px;
    display: flex;
    gap: 10px;
}

.password-requirements {
    font-size: 12px;
    color: var(--muted-text);
    margin-top: 5px;
}

/* User List Page */
.users-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.stats-container {
    display: flex;
    margin-bottom: 20px;
}

.stats-box {
    background-color: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius, 8px);
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex: 1;
    text-align: center;
}

.stats-number {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.table-controls {
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-end;
}

/* .users-table itself (width/header/stripe/hover) is the shared component in
   core styles.css — every data table in the app uses it, so it stays
   defined once. Redefining it here is what caused this page's table header
   to render a different color than the Areas list / loan dashboard. */

.actions-cell {
    display: flex;
    gap: 5px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

/* User Detail Page */
.user-detail-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.user-actions {
    display: flex;
    gap: 10px;
}

.user-info-card {
    background-color: var(--card-background);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.user-info-row {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color, #eee);
    padding-bottom: 15px;
}

.user-info-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-label {
    font-weight: bold;
    width: 150px;
}

.info-value {
    flex: 1;
}

/* Edit Profile Page */
.user-edit-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.edit-form {
    background-color: var(--card-background);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Change Password Page */
.password-change-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.password-form {
    background-color: var(--card-background);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Signup Page */
.signup-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.signup-form {
    background-color: var(--card-background);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.login-link {
    margin-top: 15px;
    text-align: center;
}

/* Delete Confirmation Page */
.delete-confirmation-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.confirmation-card {
    background-color: var(--card-background);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.warning-message {
    margin: 20px 0;
}

.warning-text {
    color: var(--danger-color);
    font-weight: bold;
}

.confirmation-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

/* Modal styles moved to core styles.css — shared with appConfirm() in base.js. */

/* No @media (prefers-color-scheme) block here: the theme is driven
   by the data-theme attribute (cookie), and every rule above uses the theme
   tokens, so a separate dark block would only drift out of sync. */
