293 lines
No EOL
5.1 KiB
CSS
293 lines
No EOL
5.1 KiB
CSS
/* Admin-specific styles */
|
|
.admin-container {
|
|
max-width: 1000px;
|
|
margin: 30px auto;
|
|
padding: 0 20px;
|
|
}
|
|
|
|
.admin-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 20px;
|
|
flex-wrap: wrap;
|
|
gap: 15px;
|
|
}
|
|
|
|
.admin-header h1 {
|
|
margin: 0;
|
|
font-size: 1.8rem;
|
|
color: var(--color-text-main, #1e293b);
|
|
}
|
|
|
|
.admin-subtitle {
|
|
margin: 5px 0 0;
|
|
color: var(--color-text-muted, #64748b);
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.btn-back-map {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 8px 16px;
|
|
background: var(--color-primary, #0284c7);
|
|
color: white;
|
|
text-decoration: none;
|
|
border-radius: var(--radius-md, 6px);
|
|
font-weight: 500;
|
|
font-size: 0.9rem;
|
|
transition: opacity 0.2s;
|
|
}
|
|
|
|
.btn-back-map:hover {
|
|
opacity: 0.9;
|
|
}
|
|
|
|
/* Privacy Guarantee Banner */
|
|
.privacy-banner {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 12px;
|
|
background: #f0fdf4;
|
|
border: 1px solid #bbf7d0;
|
|
border-radius: 8px;
|
|
padding: 14px 18px;
|
|
margin-bottom: 24px;
|
|
color: #166534;
|
|
}
|
|
|
|
.privacy-icon {
|
|
font-size: 1.5rem;
|
|
line-height: 1;
|
|
}
|
|
|
|
.privacy-text {
|
|
font-size: 0.88rem;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
/* Stats Dashboard */
|
|
.stats-container {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
|
|
gap: 15px;
|
|
margin-bottom: 25px;
|
|
}
|
|
|
|
.stat-card {
|
|
background: #fff;
|
|
border: 1px solid var(--color-border, #e2e8f0);
|
|
border-radius: 8px;
|
|
padding: 16px;
|
|
text-align: center;
|
|
box-shadow: 0 1px 3px rgba(0,0,0,0.05);
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
}
|
|
|
|
.stat-card h3 {
|
|
margin: 0;
|
|
font-size: 1.75rem;
|
|
color: var(--color-primary, #0284c7);
|
|
}
|
|
|
|
.stat-card p {
|
|
margin: 4px 0 0;
|
|
color: var(--color-text-muted, #64748b);
|
|
text-transform: uppercase;
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
.stat-card small {
|
|
margin-top: 4px;
|
|
color: #94a3b8;
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
/* Section styling */
|
|
.admin-section {
|
|
margin-bottom: 20px;
|
|
border: 1px solid var(--color-border, #e2e8f0);
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
background: #fff;
|
|
box-shadow: 0 1px 2px rgba(0,0,0,0.03);
|
|
}
|
|
|
|
.section-title {
|
|
background-color: #f8fafc;
|
|
padding: 12px 18px;
|
|
margin: 0;
|
|
font-size: 1.05rem;
|
|
cursor: pointer;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
user-select: none;
|
|
border-bottom: 1px solid var(--color-border, #e2e8f0);
|
|
}
|
|
|
|
.section-title:hover {
|
|
background-color: #f1f5f9;
|
|
}
|
|
|
|
.section-content {
|
|
padding: 15px 18px;
|
|
display: block;
|
|
max-height: 60vh;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.section-content.collapsed {
|
|
display: none;
|
|
}
|
|
|
|
.search-bar-wrap {
|
|
padding: 10px 18px 0;
|
|
}
|
|
|
|
.admin-search {
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
padding: 9px 12px;
|
|
border: 1px solid var(--color-border, #cbd5e1);
|
|
border-radius: 6px;
|
|
font-size: 0.9rem;
|
|
outline: none;
|
|
}
|
|
|
|
.admin-search:focus {
|
|
border-color: var(--color-primary, #0284c7);
|
|
box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
|
|
}
|
|
|
|
/* Item row */
|
|
.user-item {
|
|
padding: 12px;
|
|
border-bottom: 1px solid #f1f5f9;
|
|
cursor: pointer;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 12px;
|
|
border-radius: 6px;
|
|
transition: background-color 0.15s;
|
|
}
|
|
|
|
.user-item:hover {
|
|
background-color: #f8fafc;
|
|
}
|
|
|
|
.user-item.selected {
|
|
background-color: #eff6ff;
|
|
border-left: 3px solid var(--color-primary, #0284c7);
|
|
}
|
|
|
|
.item-info {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.item-actions {
|
|
display: flex;
|
|
gap: 6px;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
}
|
|
|
|
/* Badges */
|
|
.badge {
|
|
display: inline-block;
|
|
padding: 2px 7px;
|
|
border-radius: 4px;
|
|
font-size: 0.72rem;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.03em;
|
|
margin-left: 6px;
|
|
}
|
|
|
|
.badge-admin {
|
|
background: #dbeafe;
|
|
color: #1d4ed8;
|
|
}
|
|
|
|
.badge-banned {
|
|
background: #fee2e2;
|
|
color: #b91c1c;
|
|
}
|
|
|
|
.badge-public {
|
|
background: #e0f2fe;
|
|
color: #0369a1;
|
|
}
|
|
|
|
.badge-encrypted {
|
|
background: #fef3c7;
|
|
color: #b45309;
|
|
}
|
|
|
|
.badge-count {
|
|
display: inline-block;
|
|
background: #ef4444;
|
|
color: white;
|
|
font-size: 0.75rem;
|
|
font-weight: 700;
|
|
padding: 1px 7px;
|
|
border-radius: 10px;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
/* Admin action buttons */
|
|
.admin-button {
|
|
border: none;
|
|
padding: 6px 12px;
|
|
border-radius: 5px;
|
|
cursor: pointer;
|
|
font-size: 0.8rem;
|
|
font-weight: 500;
|
|
transition: opacity 0.15s;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.admin-button:hover {
|
|
opacity: 0.85;
|
|
}
|
|
|
|
.btn-danger {
|
|
background-color: #ef4444;
|
|
color: white;
|
|
}
|
|
|
|
.btn-warning {
|
|
background-color: #f59e0b;
|
|
color: white;
|
|
}
|
|
|
|
.btn-success {
|
|
background-color: #10b981;
|
|
color: white;
|
|
}
|
|
|
|
.btn-secondary {
|
|
background-color: #64748b;
|
|
color: white;
|
|
}
|
|
|
|
.btn-primary {
|
|
background-color: #0284c7;
|
|
color: white;
|
|
}
|
|
|
|
/* Empty or info text */
|
|
.empty-text {
|
|
color: #94a3b8;
|
|
padding: 16px;
|
|
text-align: center;
|
|
font-style: italic;
|
|
} |