38458-vm/assets/css/voter_management.css
2026-02-15 19:49:48 +00:00

339 lines
5.6 KiB
CSS

.header-icon-container {
background: #eef2ff;
padding: 12px;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
}
/* Voter Stats Grid */
.voter-stats-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 24px;
margin-bottom: 24px;
}
.voter-stat-card {
background: #ffffff;
border: 1px solid #f3f4f6;
border-radius: 12px;
padding: 24px;
}
.voter-stat-label {
font-size: 0.7rem;
font-weight: 700;
color: #64748b;
margin-bottom: 16px;
letter-spacing: 0.05em;
}
.voter-stat-value {
font-size: 2.5rem;
font-weight: 800;
}
/* Distribution Grid */
.distribution-row {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 24px;
margin-bottom: 24px;
}
.distribution-card {
background: #ffffff;
border: 1px solid #f3f4f6;
border-radius: 12px;
padding: 24px;
}
.distribution-header {
font-size: 0.875rem;
font-weight: 700;
color: #2563eb;
margin-bottom: 20px;
padding-bottom: 12px;
border-bottom: 1px solid #f3f4f6;
}
.distribution-list {
display: flex;
flex-direction: column;
gap: 12px;
}
.distribution-item {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 0.875rem;
color: #4b5563;
}
.distribution-count {
font-weight: 700;
color: #1e293b;
}
/* Action Buttons */
.btn-action {
padding: 10px 20px;
border-radius: 8px;
font-size: 0.875rem;
font-weight: 600;
display: flex;
align-items: center;
gap: 8px;
border: none;
cursor: pointer;
transition: all 0.2s;
}
.btn-add {
background: #2563eb;
color: white;
}
.btn-add:hover { background: #1d4ed8; }
.btn-import {
background: #4f46e5;
color: white;
}
.btn-import:hover { background: #4338ca; }
/* Filter Bar */
.filter-bar {
padding: 24px;
display: flex;
gap: 16px;
align-items: flex-end;
background: #ffffff;
border-bottom: 1px solid #f3f4f6;
}
.filter-group {
display: flex;
flex-direction: column;
gap: 8px;
flex: 1;
}
.filter-group label {
font-size: 0.7rem;
font-weight: 700;
color: #64748b;
letter-spacing: 0.05em;
}
.search-input-wrapper {
position: relative;
display: flex;
align-items: center;
}
.search-input-wrapper i {
position: absolute;
left: 12px;
}
.search-input-wrapper input {
width: 100%;
padding: 10px 12px 10px 36px;
border: 1px solid #e2e8f0;
border-radius: 8px;
font-size: 0.875rem;
outline: none;
background: #f8fafc;
}
.filter-group select {
padding: 10px 12px;
border: 1px solid #e2e8f0;
border-radius: 8px;
font-size: 0.875rem;
outline: none;
background: #ffffff;
color: #4b5563;
}
/* Voters Table */
.voters-table {
width: 100%;
border-collapse: collapse;
}
.voters-table th {
padding: 12px 24px;
text-align: left;
font-size: 0.7rem;
font-weight: 700;
color: #64748b;
background: #f9fafb;
border-bottom: 1px solid #f3f4f6;
}
.voters-table td {
padding: 16px 24px;
border-bottom: 1px solid #f3f4f6;
font-size: 0.875rem;
color: #1e293b;
}
.status-indicator {
padding: 4px 12px;
border-radius: 9999px;
font-size: 0.75rem;
font-weight: 600;
}
.status-indicator.voted {
background: #dcfce7;
color: #166534;
}
.status-indicator.pending {
background: #f1f5f9;
color: #475569;
}
.actions-cell {
display: flex;
gap: 12px;
}
.actions-cell button {
background: none;
border: none;
padding: 4px;
cursor: pointer;
color: #94a3b8;
transition: color 0.2s;
}
.actions-cell button:hover {
color: #4f46e5;
}
.actions-cell button i {
width: 16px;
height: 16px;
}
/* Modals */
.modal {
display: none;
position: fixed;
z-index: 2000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background: rgba(15, 23, 42, 0.5);
backdrop-filter: blur(4px);
align-items: center;
justify-content: center;
}
.modal-content {
background: white;
padding: 32px;
border-radius: 16px;
width: 100%;
max-width: 600px;
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 24px;
}
.modal-header h2 {
font-size: 1.25rem;
color: #1e293b;
margin: 0;
}
.close-btn {
background: none;
border: none;
font-size: 1.5rem;
color: #94a3b8;
cursor: pointer;
}
.form-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
margin-bottom: 24px;
}
.form-group {
display: flex;
flex-direction: column;
gap: 8px;
}
.form-group label {
font-size: 0.75rem;
font-weight: 600;
color: #64748b;
}
.form-group input, .form-group select {
padding: 10px 12px;
border: 1px solid #e2e8f0;
border-radius: 8px;
font-size: 0.875rem;
outline: none;
}
.modal-footer {
display: flex;
justify-content: flex-end;
gap: 12px;
margin-top: 24px;
}
.btn-cancel {
padding: 10px 20px;
background: #f1f5f9;
color: #475569;
border: none;
border-radius: 8px;
font-weight: 600;
cursor: pointer;
}
.btn-submit {
padding: 10px 20px;
background: #2563eb;
color: white;
border: none;
border-radius: 8px;
font-weight: 600;
cursor: pointer;
}
.import-area {
border: 2px dashed #e2e8f0;
border-radius: 12px;
padding: 40px;
text-align: center;
background: #f8fafc;
}
.import-area p {
font-size: 0.875rem;
color: #64748b;
margin: 0;
}