changemaker.lite/map/app/public/css/admin/user-management.css
2025-08-16 00:04:05 -06:00

220 lines
4.0 KiB
CSS

/* User Management Interface Styles */
/* Tables, user forms, and user-related components */
.users-admin-container {
display: grid;
grid-template-columns: 1fr 2fr;
gap: 30px;
margin-top: var(--padding-base);
width: 100%;
box-sizing: border-box;
overflow: hidden;
}
.user-form,
.users-list {
background: white;
border-radius: var(--border-radius);
padding: 25px;
box-shadow: var(--shadow-sm);
border: 1px solid #e0e0e0;
width: 100%;
box-sizing: border-box;
}
.users-list {
overflow-x: auto;
min-width: 0;
}
.user-form h3,
.users-list h3 {
margin-bottom: var(--padding-base);
color: var(--dark-color);
border-bottom: 2px solid var(--primary-color);
padding-bottom: 10px;
font-size: var(--font-size-xl);
}
/* Users Table */
.users-table {
width: 100%;
border-collapse: collapse;
margin-top: 15px;
font-size: var(--font-size-base);
table-layout: auto;
min-width: 600px;
box-sizing: border-box;
}
.users-table th,
.users-table td {
padding: 12px;
text-align: left;
border-bottom: 1px solid #e0e0e0;
}
.users-table th {
background-color: #f8f9fa;
font-weight: 600;
color: var(--dark-color);
font-size: var(--font-size-sm);
text-transform: uppercase;
letter-spacing: 0.5px;
}
.users-table tbody tr {
transition: background-color 0.2s;
}
.users-table tbody tr:hover {
background-color: #f8f9fa;
}
/* User Role Badges */
.user-role {
padding: 4px 8px;
border-radius: 12px;
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
display: inline-block;
text-align: center;
min-width: 45px;
line-height: 1.2;
}
.user-role.admin {
background-color: var(--error-color);
color: white;
}
.user-role.user {
background-color: var(--success-color);
color: white;
}
.user-role.temp {
background-color: var(--warning-color);
color: white;
}
/* User Expiration Information */
.expiration-info {
display: inline-block;
margin-left: 8px;
font-size: 0.8em;
color: #666;
background: #f5f5f5;
padding: 2px 6px;
border-radius: 3px;
}
.expiration-warning {
color: #ff5722;
font-weight: bold;
}
.expires-soon {
background-color: #fff3cd;
border-left: 4px solid var(--warning-color);
}
.expired {
background-color: #f8d7da;
border-left: 4px solid var(--error-color);
opacity: 0.7;
}
/* User Actions */
.user-actions {
display: flex;
gap: 8px;
}
.user-actions .btn {
padding: 6px 12px;
font-size: var(--font-size-xs);
border-radius: var(--border-radius);
font-weight: 500;
}
/* Users List Header */
.users-list-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: var(--padding-base);
padding-bottom: 10px;
border-bottom: 2px solid #eee;
}
.users-list-header h3 {
margin: 0;
color: var(--dark-color);
}
/* Helper Text */
.help-text {
font-size: 0.85em;
color: #666;
margin-top: 4px;
display: block;
}
/* Volunteer Management */
.volunteer-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 15px;
background-color: #f8f9fa;
border-radius: var(--border-radius);
margin-bottom: 8px;
}
.volunteer-info {
flex: 1;
}
.volunteer-name {
font-weight: bold;
color: var(--dark-color);
}
.volunteer-email {
font-size: var(--font-size-sm);
color: #666;
margin-top: 2px;
}
.volunteer-actions {
display: flex;
gap: 8px;
}
.no-volunteers {
text-align: center;
color: #666;
font-style: italic;
padding: var(--padding-base);
background-color: #f8f9fa;
border-radius: var(--border-radius);
}
/* User Select Dropdown */
#user-select {
padding: 8px 12px;
border: 1px solid #ddd;
border-radius: var(--border-radius);
font-size: var(--font-size-base);
background-color: white;
}
#user-select:focus {
outline: none;
border-color: var(--primary-color);
box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}