spotnotes.app/static/assets/css/admin.css

293 lines
5.1 KiB
CSS
Raw Normal View History

2026-05-12 23:58:18 +00:00
/* Admin-specific styles */
2026-10-06 19:32:24 +00:00
.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 {
2026-06-02 04:02:39 +00:00
display: inline-flex;
align-items: center;
2026-10-06 19:32:24 +00:00
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;
2026-05-12 23:58:18 +00:00
}
2026-10-06 19:32:24 +00:00
.btn-back-map:hover {
opacity: 0.9;
2026-05-12 23:58:18 +00:00
}
2026-10-06 19:32:24 +00:00
/* Privacy Guarantee Banner */
.privacy-banner {
2026-05-12 23:58:18 +00:00
display: flex;
2026-10-06 19:32:24 +00:00
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;
2026-05-12 23:58:18 +00:00
}
2026-10-06 19:32:24 +00:00
/* 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 */
2026-05-12 23:58:18 +00:00
.admin-section {
margin-bottom: 20px;
2026-10-06 19:32:24 +00:00
border: 1px solid var(--color-border, #e2e8f0);
border-radius: 8px;
2026-05-12 23:58:18 +00:00
overflow: hidden;
background: #fff;
2026-10-06 19:32:24 +00:00
box-shadow: 0 1px 2px rgba(0,0,0,0.03);
2026-05-12 23:58:18 +00:00
}
.section-title {
2026-10-06 19:32:24 +00:00
background-color: #f8fafc;
padding: 12px 18px;
2026-05-12 23:58:18 +00:00
margin: 0;
2026-10-06 19:32:24 +00:00
font-size: 1.05rem;
2026-05-12 23:58:18 +00:00
cursor: pointer;
display: flex;
justify-content: space-between;
align-items: center;
2026-10-06 19:32:24 +00:00
user-select: none;
border-bottom: 1px solid var(--color-border, #e2e8f0);
2026-05-12 23:58:18 +00:00
}
.section-title:hover {
2026-10-06 19:32:24 +00:00
background-color: #f1f5f9;
2026-05-12 23:58:18 +00:00
}
.section-content {
2026-10-06 19:32:24 +00:00
padding: 15px 18px;
display: block;
max-height: 60vh;
overflow-y: auto;
2026-05-12 23:58:18 +00:00
}
.section-content.collapsed {
display: none;
}
2026-10-06 19:32:24 +00:00
.search-bar-wrap {
padding: 10px 18px 0;
2026-05-12 23:58:18 +00:00
}
2026-10-06 19:32:24 +00:00
.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;
2026-05-12 23:58:18 +00:00
}
2026-10-06 19:32:24 +00:00
.admin-search:focus {
border-color: var(--color-primary, #0284c7);
box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
2026-05-12 23:58:18 +00:00
}
2026-10-06 19:32:24 +00:00
/* 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;
2026-05-12 23:58:18 +00:00
text-transform: uppercase;
2026-10-06 19:32:24 +00:00
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;
2026-05-12 23:58:18 +00:00
font-size: 0.8rem;
2026-10-06 19:32:24 +00:00
font-weight: 500;
transition: opacity 0.15s;
display: inline-flex;
align-items: center;
justify-content: center;
2026-05-12 23:58:18 +00:00
}
2026-10-06 19:32:24 +00:00
.admin-button:hover {
opacity: 0.85;
}
.btn-danger {
background-color: #ef4444;
color: white;
2026-05-12 23:58:18 +00:00
}
2026-10-06 19:32:24 +00:00
.btn-warning {
background-color: #f59e0b;
color: white;
2026-05-12 23:58:18 +00:00
}
2026-10-06 19:32:24 +00:00
.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;
2026-05-12 23:58:18 +00:00
}