forked from jamesp/sasa-membership
632e66e21d
- Add configurable profile questions with conditional visibility, admin-only fields, user answers, and seeded onboarding/volunteer questions
- Add admin UI for managing profile questions and member profile answers
- Add volunteer level/profile data support across backend schemas, models, API, and migration
- Update dashboard/profile UI, super admin menu, membership service types, and related styling
- Add privacy policy, terms of service, cookie notice, and footer links
- Add frontend Vitest coverage for profile question logic
- Add backend pytest coverage for profile answer normalization and validation
- Update restart.sh to build, run frontend/backend unit tests, and restart only after tests pass
- Refresh README, quickstart, project structure, instructions, and Square docs to match current app features
- Protect feature flag reload behind super-admin access
- Restrict admin-triggered password resets so admins can only reset member accounts
- Replace email template HTML preview rendering with escaped text preview
- Update docs for feature flag reload access, password reset scope, and email template preview safety
-- test user questions are also made by AI and not very useful. but i didn't know what to put there so its good enough for a test
1311 lines
24 KiB
CSS
1311 lines
24 KiB
CSS
@tailwind base;
|
|
@tailwind components;
|
|
@tailwind utilities;
|
|
|
|
:root {
|
|
font-family: "IBM Plex Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
|
|
line-height: 1.6;
|
|
font-weight: 400;
|
|
color: #263445;
|
|
background-color: #eef4f3;
|
|
--ops-bg: #eef4f3;
|
|
--ops-surface: #ffffff;
|
|
--ops-surface-muted: #f5f9fb;
|
|
--ops-surface-strong: #e3f0f2;
|
|
--ops-border: #c9d8df;
|
|
--ops-border-soft: #d7e4ea;
|
|
--ops-text: #263445;
|
|
--ops-muted: #5b6674;
|
|
--ops-subtle: #667386;
|
|
--ops-accent: #0b6f8f;
|
|
--ops-accent-dark: #084f67;
|
|
--ops-accent-soft: #e2f3f8;
|
|
--ops-accent-mid: #b7dfea;
|
|
--ops-accent-wash: #f0faf9;
|
|
--ops-coral: #c94f5c;
|
|
--ops-coral-soft: #fdebed;
|
|
--ops-danger: #b42336;
|
|
--ops-danger-soft: #fde8ec;
|
|
--ops-warning: #9a6a00;
|
|
--ops-warning-soft: #fff5da;
|
|
--ops-success: #176c48;
|
|
--ops-success-soft: #e4f6ed;
|
|
--ops-radius: 6px;
|
|
}
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
min-height: 100vh;
|
|
background:
|
|
linear-gradient(180deg, rgba(226, 243, 248, 0.72) 0, rgba(238, 244, 243, 0.96) 240px, var(--ops-bg) 100%);
|
|
color: var(--ops-text);
|
|
}
|
|
|
|
#root {
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.app-shell {
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.app-main {
|
|
flex: 1 0 auto;
|
|
}
|
|
|
|
.container {
|
|
max-width: 1280px;
|
|
margin: 0 auto;
|
|
padding: 20px 18px;
|
|
}
|
|
|
|
.card {
|
|
background: linear-gradient(180deg, var(--ops-surface) 0%, #fbfdfd 100%);
|
|
border-radius: var(--ops-radius);
|
|
padding: 22px;
|
|
box-shadow: none;
|
|
border: 1px solid var(--ops-border-soft);
|
|
border-top: 3px solid var(--ops-accent-mid);
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.btn {
|
|
padding: 9px 15px;
|
|
border: 1px solid transparent;
|
|
border-radius: var(--ops-radius);
|
|
font-size: 15px;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: linear-gradient(180deg, #0d789b 0%, var(--ops-accent-dark) 100%);
|
|
color: white;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background-color: var(--ops-accent-dark);
|
|
}
|
|
|
|
.btn-secondary {
|
|
background-color: var(--ops-surface);
|
|
border-color: var(--ops-border);
|
|
color: var(--ops-text);
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background-color: var(--ops-accent-soft);
|
|
border-color: var(--ops-accent);
|
|
color: var(--ops-accent);
|
|
}
|
|
|
|
.btn-danger {
|
|
background-color: var(--ops-danger);
|
|
color: white;
|
|
}
|
|
|
|
.btn-danger:hover {
|
|
background-color: #8f1d2d;
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.form-group label {
|
|
display: block;
|
|
margin-bottom: 6px;
|
|
font-weight: 700;
|
|
color: var(--ops-text);
|
|
}
|
|
|
|
.form-group input,
|
|
.form-group textarea,
|
|
.form-group select {
|
|
width: 100%;
|
|
padding: 10px;
|
|
border: 1px solid var(--ops-border);
|
|
border-radius: var(--ops-radius);
|
|
font-size: 16px;
|
|
background: var(--ops-surface);
|
|
color: var(--ops-text);
|
|
}
|
|
|
|
.form-group input:focus,
|
|
.form-group textarea:focus,
|
|
.form-group select:focus {
|
|
outline: none;
|
|
border-color: var(--ops-accent);
|
|
box-shadow: 0 0 0 3px rgba(11, 93, 125, 0.12);
|
|
}
|
|
|
|
.alert {
|
|
padding: 12px 16px;
|
|
border-radius: 4px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.alert-success {
|
|
background-color: var(--ops-success-soft);
|
|
color: var(--ops-success);
|
|
border: 1px solid #b9e6cc;
|
|
}
|
|
|
|
.alert-error {
|
|
background-color: var(--ops-coral-soft);
|
|
color: #8c2631;
|
|
border: 1px solid #f2c5ca;
|
|
}
|
|
|
|
.alert-warning {
|
|
background-color: var(--ops-warning-soft);
|
|
color: var(--ops-warning);
|
|
border: 1px solid #efd080;
|
|
}
|
|
|
|
.navbar {
|
|
background: linear-gradient(90deg, #f7fcfb 0%, #e8f5f7 56%, #fff8e8 100%);
|
|
color: var(--ops-text);
|
|
padding: 14px 20px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
box-shadow: none;
|
|
border-bottom: 1px solid #bdd7df;
|
|
}
|
|
|
|
.navbar h1 {
|
|
margin: 0;
|
|
font-size: 20px;
|
|
color: var(--ops-accent-dark);
|
|
}
|
|
|
|
.navbar button {
|
|
background: var(--ops-surface-muted);
|
|
color: var(--ops-text);
|
|
border: 1px solid var(--ops-border);
|
|
padding: 8px 16px;
|
|
border-radius: var(--ops-radius);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.navbar button:hover {
|
|
background: var(--ops-accent-soft);
|
|
border-color: #b8d5e4;
|
|
color: var(--ops-accent);
|
|
}
|
|
|
|
.auth-container {
|
|
min-height: 100vh;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background:
|
|
linear-gradient(135deg, rgba(226, 243, 248, 0.92) 0%, rgba(255, 245, 218, 0.72) 100%),
|
|
var(--ops-bg);
|
|
padding: 24px;
|
|
}
|
|
|
|
.auth-card {
|
|
background: linear-gradient(180deg, #ffffff 0%, #fbfdfd 100%);
|
|
border-radius: var(--ops-radius);
|
|
padding: 34px;
|
|
box-shadow: none;
|
|
border: 1px solid #bfd7df;
|
|
border-top: 4px solid var(--ops-accent);
|
|
width: 100%;
|
|
max-width: 900px;
|
|
}
|
|
|
|
.auth-card h2 {
|
|
margin-bottom: 24px;
|
|
color: var(--ops-text);
|
|
text-align: center;
|
|
}
|
|
|
|
.auth-card .form-footer {
|
|
margin-top: 16px;
|
|
text-align: center;
|
|
color: var(--ops-muted);
|
|
}
|
|
|
|
.auth-card .form-footer a {
|
|
color: var(--ops-accent);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.auth-card .form-footer a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.dashboard-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
gap: 20px;
|
|
margin-top: 16px;
|
|
}
|
|
|
|
.dashboard-tabs {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.navbar-main {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 14px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.navbar-tab-strip {
|
|
display: flex;
|
|
gap: 6px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.navbar-tab-active,
|
|
.navbar-tab-inactive {
|
|
border: 1px solid var(--ops-border);
|
|
color: var(--ops-text);
|
|
border-radius: var(--ops-radius);
|
|
padding: 6px 12px;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.navbar-tab-active {
|
|
background: linear-gradient(180deg, #0d789b 0%, var(--ops-accent-dark) 100%);
|
|
border-color: var(--ops-accent-dark);
|
|
color: white;
|
|
}
|
|
|
|
.navbar-tab-inactive {
|
|
background: rgba(255, 255, 255, 0.72);
|
|
}
|
|
|
|
.navbar-tab-inactive:hover {
|
|
background: var(--ops-accent-soft);
|
|
border-color: #b8d5e4;
|
|
color: var(--ops-accent);
|
|
}
|
|
|
|
.profile-question-row {
|
|
display: grid;
|
|
grid-template-columns: minmax(240px, 320px) 1fr;
|
|
gap: 14px;
|
|
align-items: start;
|
|
border: 1px solid var(--ops-border-soft);
|
|
border-radius: var(--ops-radius);
|
|
padding: 12px 12px 10px;
|
|
background: linear-gradient(90deg, var(--ops-accent-wash) 0%, var(--ops-surface) 36%);
|
|
}
|
|
|
|
.profile-question-meta {
|
|
min-width: 0;
|
|
}
|
|
|
|
.profile-question-answer {
|
|
min-width: 0;
|
|
}
|
|
|
|
.profile-question-readonly {
|
|
width: 100%;
|
|
min-height: 38px;
|
|
padding: 8px 10px;
|
|
border: 1px solid #d5dde8;
|
|
border-radius: var(--ops-radius);
|
|
background: var(--ops-surface-muted);
|
|
color: var(--ops-muted);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.site-footer {
|
|
margin-top: auto;
|
|
padding: 20px 14px;
|
|
background: linear-gradient(90deg, #f7fcfb 0%, #eef7f8 62%, #fff8e8 100%);
|
|
color: var(--ops-muted);
|
|
border-top: 1px solid #bdd7df;
|
|
text-align: center;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.site-footer a {
|
|
color: var(--ops-accent);
|
|
text-decoration: none;
|
|
margin: 0 8px;
|
|
}
|
|
|
|
.site-footer a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.cookie-banner {
|
|
position: fixed;
|
|
right: 16px;
|
|
bottom: 16px;
|
|
z-index: 2400;
|
|
width: min(360px, calc(100vw - 32px));
|
|
background: linear-gradient(180deg, #ffffff 0%, #f4fbfa 100%);
|
|
color: var(--ops-text);
|
|
border-radius: var(--ops-radius);
|
|
border: 1px solid #b9d8df;
|
|
border-left: 4px solid var(--ops-accent);
|
|
box-shadow: 0 8px 18px rgba(38, 52, 69, 0.12);
|
|
padding: 12px 14px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
justify-content: space-between;
|
|
font-size: 13px;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.admin-workspace {
|
|
display: grid;
|
|
grid-template-columns: 230px minmax(0, 1fr);
|
|
gap: 18px;
|
|
align-items: start;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.admin-sidebar {
|
|
position: sticky;
|
|
top: 18px;
|
|
display: grid;
|
|
gap: 6px;
|
|
background: linear-gradient(180deg, #ffffff 0%, #f4fbfa 100%);
|
|
border: 1px solid #bdd7df;
|
|
border-radius: var(--ops-radius);
|
|
padding: 12px;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.admin-sidebar-title {
|
|
color: var(--ops-muted);
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
padding: 4px 6px 10px;
|
|
}
|
|
|
|
.admin-sidebar-link {
|
|
width: 100%;
|
|
border: 1px solid transparent;
|
|
background: transparent;
|
|
color: var(--ops-text);
|
|
border-radius: var(--ops-radius);
|
|
padding: 10px 11px;
|
|
text-align: left;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.admin-sidebar-link:hover,
|
|
.admin-sidebar-link.active {
|
|
background: var(--ops-accent-soft);
|
|
border-color: #b8d5e4;
|
|
color: var(--ops-accent);
|
|
}
|
|
|
|
.admin-sidebar-link.active {
|
|
border-left: 4px solid var(--ops-accent);
|
|
padding-left: 8px;
|
|
}
|
|
|
|
.admin-content {
|
|
min-width: 0;
|
|
}
|
|
|
|
.admin-page-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
gap: 14px;
|
|
margin-bottom: 16px;
|
|
border-bottom: 1px solid #cfe1e5;
|
|
padding-bottom: 12px;
|
|
}
|
|
|
|
.admin-page-header h3 {
|
|
margin: 0 0 4px;
|
|
}
|
|
|
|
.admin-page-header p {
|
|
margin: 0;
|
|
color: var(--ops-muted);
|
|
}
|
|
|
|
.admin-stat-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
|
|
gap: 10px;
|
|
margin-bottom: 18px;
|
|
}
|
|
|
|
.admin-stat-card {
|
|
display: grid;
|
|
gap: 6px;
|
|
background: linear-gradient(180deg, #ffffff 0%, #f8fcfb 100%);
|
|
border: 1px solid var(--ops-border);
|
|
border-radius: var(--ops-radius);
|
|
padding: 14px;
|
|
text-align: left;
|
|
color: var(--ops-text);
|
|
box-shadow: none;
|
|
}
|
|
|
|
button.admin-stat-card {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.admin-stat-card span {
|
|
color: var(--ops-muted);
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.admin-stat-card strong {
|
|
font-size: 26px;
|
|
line-height: 1;
|
|
color: var(--ops-accent-dark);
|
|
}
|
|
|
|
.admin-stat-card.attention {
|
|
border-color: #d2aa4d;
|
|
background: var(--ops-warning-soft);
|
|
}
|
|
|
|
.admin-panel-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
|
gap: 14px;
|
|
}
|
|
|
|
.admin-panel {
|
|
background: linear-gradient(180deg, #ffffff 0%, #fbfdfd 100%);
|
|
border: 1px solid var(--ops-border-soft);
|
|
border-top: 3px solid var(--ops-accent-mid);
|
|
border-radius: var(--ops-radius);
|
|
padding: 18px;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.admin-panel h4 {
|
|
margin: 0 0 12px;
|
|
}
|
|
|
|
.admin-queue-list {
|
|
display: grid;
|
|
gap: 10px;
|
|
}
|
|
|
|
.admin-queue-item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
align-items: center;
|
|
border: 1px solid var(--ops-border-soft);
|
|
border-radius: var(--ops-radius);
|
|
padding: 10px;
|
|
background: linear-gradient(90deg, #ffffff 0%, #f6fbfa 100%);
|
|
}
|
|
|
|
.admin-queue-item span,
|
|
.muted-line {
|
|
display: block;
|
|
color: var(--ops-subtle);
|
|
font-size: 12px;
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.admin-filter-bar {
|
|
display: grid;
|
|
grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(150px, 180px));
|
|
gap: 10px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.admin-filter-bar input,
|
|
.admin-filter-bar select,
|
|
.drawer-control-grid select {
|
|
width: 100%;
|
|
padding: 9px 10px;
|
|
border: 1px solid var(--ops-border);
|
|
border-radius: var(--ops-radius);
|
|
background: var(--ops-surface);
|
|
color: var(--ops-text);
|
|
}
|
|
|
|
.admin-filter-bar input:focus,
|
|
.admin-filter-bar select:focus,
|
|
.drawer-control-grid select:focus {
|
|
outline: none;
|
|
border-color: var(--ops-accent);
|
|
box-shadow: 0 0 0 3px rgba(11, 111, 143, 0.12);
|
|
}
|
|
|
|
.admin-table-wrap {
|
|
overflow-x: auto;
|
|
border: 1px solid var(--ops-border);
|
|
border-radius: var(--ops-radius);
|
|
background: var(--ops-surface);
|
|
}
|
|
|
|
.admin-table {
|
|
width: 100%;
|
|
min-width: 820px;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
.admin-table th,
|
|
.admin-table td {
|
|
padding: 10px 12px;
|
|
border-bottom: 1px solid #edf1f6;
|
|
text-align: left;
|
|
vertical-align: top;
|
|
}
|
|
|
|
.admin-table th {
|
|
color: var(--ops-muted);
|
|
font-size: 12px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.03em;
|
|
background: #e9f4f7;
|
|
}
|
|
|
|
.admin-table tbody tr {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.admin-table tbody tr:hover {
|
|
background: var(--ops-accent-wash);
|
|
}
|
|
|
|
.admin-table .btn,
|
|
.table-button-row .btn {
|
|
padding: 5px 9px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.table-button-row {
|
|
display: flex;
|
|
gap: 6px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.admin-pagination {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 12px;
|
|
margin-top: 12px;
|
|
color: var(--ops-muted);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.admin-pagination div {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.admin-empty {
|
|
color: var(--ops-subtle);
|
|
padding: 12px 0;
|
|
}
|
|
|
|
.role-badge {
|
|
display: inline-block;
|
|
padding: 4px 8px;
|
|
border-radius: 4px;
|
|
font-size: 12px;
|
|
font-weight: 800;
|
|
text-transform: capitalize;
|
|
}
|
|
|
|
.role-member {
|
|
background: var(--ops-success-soft);
|
|
color: var(--ops-success);
|
|
}
|
|
|
|
.role-admin {
|
|
background: var(--ops-warning-soft);
|
|
color: var(--ops-warning);
|
|
}
|
|
|
|
.role-super_admin {
|
|
background: var(--ops-coral-soft);
|
|
color: #9f1f2d;
|
|
}
|
|
|
|
.drawer-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 2600;
|
|
background: rgba(38, 52, 69, 0.32);
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.user-drawer {
|
|
width: min(760px, 100vw);
|
|
height: 100vh;
|
|
overflow-y: auto;
|
|
background:
|
|
linear-gradient(180deg, rgba(226, 243, 248, 0.72) 0, var(--ops-bg) 220px);
|
|
box-shadow: -12px 0 24px rgba(38, 52, 69, 0.16);
|
|
padding: 22px;
|
|
}
|
|
|
|
.drawer-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
gap: 12px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.drawer-header h3 {
|
|
margin: 0 0 4px;
|
|
}
|
|
|
|
.drawer-header p {
|
|
margin: 0;
|
|
color: var(--ops-muted);
|
|
}
|
|
|
|
.drawer-header-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.drawer-close {
|
|
border: none;
|
|
background: transparent;
|
|
color: var(--ops-muted);
|
|
font-size: 26px;
|
|
line-height: 1;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.drawer-section {
|
|
background: linear-gradient(180deg, #ffffff 0%, #fbfdfd 100%);
|
|
border: 1px solid var(--ops-border-soft);
|
|
border-top: 3px solid var(--ops-accent-mid);
|
|
border-radius: var(--ops-radius);
|
|
padding: 16px;
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
.drawer-section h4 {
|
|
margin: 0 0 12px;
|
|
}
|
|
|
|
.drawer-control-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
|
|
gap: 12px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.drawer-control-grid label {
|
|
display: grid;
|
|
gap: 5px;
|
|
font-weight: 700;
|
|
color: var(--ops-text);
|
|
}
|
|
|
|
/* Desktop view: side-by-side layout */
|
|
@media (min-width: 769px) {
|
|
.dashboard-grid {
|
|
grid-template-columns: 1fr 1fr;
|
|
align-items: start;
|
|
}
|
|
|
|
.dashboard-grid > .card {
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
|
|
/* Mobile responsive adjustments */
|
|
@media (max-width: 768px) {
|
|
.dashboard-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.container {
|
|
padding: 10px 8px;
|
|
}
|
|
|
|
.card {
|
|
padding: 16px;
|
|
}
|
|
|
|
.navbar {
|
|
padding: 12px 16px;
|
|
}
|
|
|
|
.navbar h1 {
|
|
font-size: 18px;
|
|
}
|
|
|
|
/* Make tables responsive */
|
|
table {
|
|
width: 100%;
|
|
min-width: 520px;
|
|
}
|
|
|
|
.table-container {
|
|
overflow-x: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
|
|
/* Auth pages mobile adjustments */
|
|
.auth-container {
|
|
flex-direction: column;
|
|
padding: 20px;
|
|
gap: 20px;
|
|
}
|
|
|
|
.auth-card {
|
|
max-width: 100%;
|
|
padding: 24px;
|
|
}
|
|
|
|
/* Welcome section mobile adjustments */
|
|
.welcome-section {
|
|
max-width: 100% !important;
|
|
padding: 20px !important;
|
|
}
|
|
|
|
.welcome-section h1 {
|
|
font-size: 1.8rem !important;
|
|
}
|
|
|
|
/* Form grid mobile adjustments */
|
|
@media (max-width: 768px) {
|
|
form[style*="grid-template-columns"] {
|
|
grid-template-columns: 1fr !important;
|
|
gap: 16px !important;
|
|
}
|
|
}
|
|
|
|
.dashboard-tabs {
|
|
gap: 6px;
|
|
}
|
|
|
|
.navbar-main {
|
|
width: 100%;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.navbar-tab-strip {
|
|
width: 100%;
|
|
}
|
|
|
|
.profile-question-row {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.cookie-banner {
|
|
right: 10px;
|
|
bottom: 10px;
|
|
width: min(360px, calc(100vw - 20px));
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.admin-workspace {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.admin-sidebar {
|
|
position: static;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
|
|
.admin-sidebar-title {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.admin-filter-bar {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.admin-page-header,
|
|
.admin-queue-item,
|
|
.admin-pagination {
|
|
align-items: stretch;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.user-drawer {
|
|
width: 100vw;
|
|
padding: 16px;
|
|
}
|
|
}
|
|
|
|
.status-badge {
|
|
display: inline-block;
|
|
padding: 4px 8px;
|
|
border-radius: 4px;
|
|
font-size: 12px;
|
|
font-weight: 800;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.status-active {
|
|
background-color: var(--ops-success-soft);
|
|
color: var(--ops-success);
|
|
}
|
|
|
|
.status-pending {
|
|
background-color: var(--ops-warning-soft);
|
|
color: var(--ops-warning);
|
|
}
|
|
|
|
.status-expired {
|
|
background-color: var(--ops-danger-soft);
|
|
color: var(--ops-danger);
|
|
}
|
|
|
|
/* Modal Styles */
|
|
.modal-overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(38, 52, 69, 0.32);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 2000;
|
|
}
|
|
|
|
.modal-content {
|
|
background: linear-gradient(180deg, #ffffff 0%, #fbfdfd 100%);
|
|
padding: 24px;
|
|
border-radius: var(--ops-radius);
|
|
width: 100%;
|
|
max-width: 400px;
|
|
box-shadow: 0 12px 24px rgba(38, 52, 69, 0.14);
|
|
border: 1px solid #bfd7df;
|
|
border-top: 4px solid var(--ops-accent);
|
|
}
|
|
|
|
.modal-content h3 {
|
|
margin: 0 0 20px 0;
|
|
color: var(--ops-text);
|
|
font-size: 18px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.modal-form-group {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.modal-form-group label {
|
|
display: block;
|
|
margin-bottom: 4px;
|
|
font-weight: bold;
|
|
color: var(--ops-text);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.modal-form-group input {
|
|
width: 100%;
|
|
padding: 8px;
|
|
border: 1px solid var(--ops-border);
|
|
border-radius: var(--ops-radius);
|
|
font-size: 16px;
|
|
color: var(--ops-text);
|
|
background-color: var(--ops-surface);
|
|
}
|
|
|
|
.modal-form-group input:focus {
|
|
outline: none;
|
|
border-color: var(--ops-accent);
|
|
box-shadow: 0 0 0 3px rgba(11, 93, 125, 0.12);
|
|
}
|
|
|
|
.modal-error {
|
|
color: var(--ops-danger);
|
|
margin-bottom: 16px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.modal-buttons {
|
|
display: flex;
|
|
gap: 8px;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.modal-btn-cancel {
|
|
padding: 8px 16px;
|
|
border: 1px solid var(--ops-border);
|
|
border-radius: var(--ops-radius);
|
|
background: var(--ops-surface);
|
|
cursor: pointer;
|
|
color: var(--ops-text);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.modal-btn-cancel:hover {
|
|
background: var(--ops-surface-muted);
|
|
}
|
|
|
|
.modal-btn-primary {
|
|
padding: 8px 16px;
|
|
border: none;
|
|
border-radius: var(--ops-radius);
|
|
background: linear-gradient(180deg, #0d789b 0%, var(--ops-accent-dark) 100%);
|
|
color: white;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.modal-btn-primary:hover:not(:disabled) {
|
|
background: var(--ops-accent-dark);
|
|
}
|
|
|
|
.modal-btn-primary:disabled {
|
|
background: #6c757d;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* Tab Styles */
|
|
.tab-active {
|
|
padding: 9px 14px;
|
|
border: 1px solid var(--ops-accent-dark);
|
|
background: linear-gradient(180deg, #0d789b 0%, var(--ops-accent-dark) 100%);
|
|
color: white;
|
|
cursor: pointer;
|
|
border-radius: var(--ops-radius);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.tab-inactive {
|
|
padding: 9px 14px;
|
|
border: 1px solid var(--ops-border);
|
|
background: var(--ops-surface);
|
|
color: var(--ops-text);
|
|
cursor: pointer;
|
|
border-radius: var(--ops-radius);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.tab-inactive:hover {
|
|
color: var(--ops-accent);
|
|
border-color: #b8d5e4;
|
|
background: var(--ops-accent-soft);
|
|
}
|
|
|
|
/* Super Admin Panel Styles */
|
|
.super-admin-table th {
|
|
color: #333;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.super-admin-table td {
|
|
color: #555;
|
|
}
|
|
|
|
.super-admin-loading {
|
|
color: #666;
|
|
}
|
|
|
|
.super-admin-placeholder {
|
|
color: #666;
|
|
}
|
|
|
|
/* Action buttons in tables */
|
|
.action-btn {
|
|
padding: 6px 12px;
|
|
border: 1px solid var(--ops-accent);
|
|
border-radius: var(--ops-radius);
|
|
background: linear-gradient(180deg, #0d789b 0%, var(--ops-accent-dark) 100%);
|
|
color: white !important;
|
|
cursor: pointer;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
transition: all 0.2s;
|
|
display: inline-block;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.action-btn:hover {
|
|
background: var(--ops-accent-dark);
|
|
border-color: var(--ops-accent-dark);
|
|
color: white !important;
|
|
}
|
|
|
|
.action-btn-danger {
|
|
border-color: var(--ops-coral);
|
|
background: var(--ops-coral);
|
|
color: white !important;
|
|
}
|
|
|
|
.action-btn-danger:hover {
|
|
background: #9f2f3d;
|
|
border-color: #9f2f3d;
|
|
color: white !important;
|
|
}
|
|
|
|
/* Events Container Styles */
|
|
.events-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
|
|
.event-card {
|
|
border: 1px solid var(--ops-border-soft);
|
|
border-radius: var(--ops-radius);
|
|
padding: 16px;
|
|
background: linear-gradient(90deg, #ffffff 0%, #f4fbfa 100%);
|
|
border-left: 4px solid var(--ops-accent-mid);
|
|
}
|
|
|
|
.event-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
gap: 16px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.event-info {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.event-title {
|
|
margin: 0 0 4px 0;
|
|
color: var(--ops-accent);
|
|
font-size: 18px;
|
|
word-wrap: break-word;
|
|
}
|
|
|
|
.event-datetime {
|
|
margin: 0;
|
|
font-size: 14px;
|
|
color: var(--ops-muted);
|
|
}
|
|
|
|
.event-location {
|
|
margin: 4px 0 0 0;
|
|
font-size: 14px;
|
|
color: var(--ops-muted);
|
|
}
|
|
|
|
.event-rsvp-buttons {
|
|
display: flex;
|
|
gap: 8px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.rsvp-btn {
|
|
font-size: 12px;
|
|
padding: 8px 16px;
|
|
border: 2px solid #adb5bd;
|
|
border-radius: 4px;
|
|
background-color: transparent;
|
|
color: #6c757d;
|
|
cursor: pointer;
|
|
font-weight: normal;
|
|
transition: all 0.3s ease;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.rsvp-btn:hover:not(:disabled) {
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.rsvp-btn:disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.rsvp-btn.active {
|
|
font-weight: bold;
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.rsvp-btn:not(.active) {
|
|
opacity: 0.5;
|
|
filter: grayscale(50%);
|
|
}
|
|
|
|
.rsvp-btn-attending.active {
|
|
border: 3px solid #28a745;
|
|
background-color: #28a745;
|
|
color: white;
|
|
box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
|
|
}
|
|
|
|
.rsvp-btn-maybe.active {
|
|
border: 3px solid #ffc107;
|
|
background-color: #ffc107;
|
|
color: #212529;
|
|
box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
|
|
}
|
|
|
|
.rsvp-btn-not-attending.active {
|
|
border: 3px solid #dc3545;
|
|
background-color: #dc3545;
|
|
color: white;
|
|
box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
|
|
}
|
|
|
|
.event-description {
|
|
margin: 0;
|
|
font-size: 14px;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.event-rsvp-status {
|
|
margin-top: 12px;
|
|
padding: 8px 12px;
|
|
border-radius: 4px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.event-rsvp-status.attending {
|
|
background-color: #d4edda;
|
|
border: 1px solid #c3e6cb;
|
|
color: #155724;
|
|
}
|
|
|
|
.event-rsvp-status.maybe {
|
|
background-color: #fff3cd;
|
|
border: 1px solid #ffeaa7;
|
|
color: #856404;
|
|
}
|
|
|
|
.event-rsvp-status.not_attending {
|
|
background-color: #f8d7da;
|
|
border: 1px solid #f5c6cb;
|
|
color: #721c24;
|
|
}
|
|
|
|
input,
|
|
textarea,
|
|
select {
|
|
font: inherit;
|
|
}
|
|
|
|
button,
|
|
a,
|
|
input,
|
|
textarea,
|
|
select {
|
|
transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
|
|
}
|
|
|
|
table {
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
th {
|
|
background: var(--ops-surface-muted);
|
|
color: var(--ops-muted);
|
|
font-size: 12px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.03em;
|
|
}
|
|
|
|
td,
|
|
th {
|
|
border-bottom: 1px solid #edf1f6;
|
|
}
|
|
|
|
.card h2,
|
|
.card h3,
|
|
.card h4,
|
|
.admin-panel h3,
|
|
.admin-panel h4,
|
|
.drawer-section h4 {
|
|
color: var(--ops-text);
|
|
}
|
|
|
|
.card p,
|
|
.event-description {
|
|
color: var(--ops-text);
|
|
}
|
|
|
|
.welcome-section,
|
|
.auth-card > div[style*="linear-gradient"],
|
|
.card div[style*="backgroundColor: '#f5f5f5'"],
|
|
.card div[style*="background-color: #f5f5f5"] {
|
|
background: var(--ops-surface-muted) !important;
|
|
border: 1px solid var(--ops-border-soft) !important;
|
|
border-radius: var(--ops-radius) !important;
|
|
box-shadow: none !important;
|
|
}
|
|
|
|
.rsvp-btn {
|
|
border-radius: var(--ops-radius);
|
|
}
|
|
|
|
.rsvp-btn.active {
|
|
transform: none;
|
|
}
|
|
|
|
.rsvp-btn-attending.active,
|
|
.rsvp-btn-maybe.active,
|
|
.rsvp-btn-not-attending.active {
|
|
box-shadow: none;
|
|
}
|
|
|
|
/* Mobile responsive adjustments for events */
|
|
@media (max-width: 768px) {
|
|
.event-header {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.event-rsvp-buttons {
|
|
flex-direction: column;
|
|
width: 100%;
|
|
gap: 8px;
|
|
}
|
|
|
|
.rsvp-btn {
|
|
width: 100%;
|
|
padding: 12px 16px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.event-title {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.event-card {
|
|
padding: 12px;
|
|
}
|
|
|
|
/* Event modal responsive */
|
|
.modal-content[style*="600px"] {
|
|
max-width: 95% !important;
|
|
}
|
|
|
|
.modal-content div[style*="grid-template-columns"] {
|
|
grid-template-columns: 1fr !important;
|
|
}
|
|
}
|