Initial CAT application and deployment update
This commit is contained in:
+119
@@ -0,0 +1,119 @@
|
||||
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');
|
||||
|
||||
:root {
|
||||
--bg: #f7f7f7;
|
||||
--surface: #ffffff;
|
||||
--text: #131313;
|
||||
--muted: #7c7c7c;
|
||||
--border: #dcdcdc;
|
||||
--accent: #008f95;
|
||||
--accent-soft: #c8f0ee;
|
||||
--focus: #006d73;
|
||||
--danger: #a51d00;
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
|
||||
body {
|
||||
min-height: 100vh;
|
||||
margin: 0;
|
||||
padding: 32px;
|
||||
color: var(--text);
|
||||
background: var(--bg);
|
||||
font-family: Roboto, Arial, sans-serif;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.admin-header,
|
||||
.admin-content {
|
||||
width: min(100%, 1600px);
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.admin-header {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
justify-content: space-between;
|
||||
gap: 24px;
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
|
||||
h1, h2 { margin: 0; line-height: 1.1; }
|
||||
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; letter-spacing: -0.04em; }
|
||||
h2 { margin-bottom: 24px; font-size: 1.6rem; font-weight: 700; }
|
||||
.eyebrow { margin: 0 0 8px; color: var(--accent); font-size: .75rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
|
||||
|
||||
.panel,
|
||||
.login-card {
|
||||
padding: 28px;
|
||||
background: var(--surface);
|
||||
box-shadow: 0 8px 24px rgba(19, 19, 19, .08);
|
||||
}
|
||||
|
||||
.panel { margin-bottom: 24px; }
|
||||
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
|
||||
.count { display: inline-block; min-width: 40px; padding: 5px 10px; color: #fff; background: var(--accent); text-align: center; font-weight: 700; }
|
||||
.export-button { display: inline-block; margin-left: 8px; padding: 8px 12px; text-decoration: none; }
|
||||
.table-wrapper { overflow-x: auto; }
|
||||
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
|
||||
th, td { padding: 13px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
|
||||
th { color: var(--muted); font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; }
|
||||
td { min-width: 120px; }
|
||||
.paid-form { margin: 0; }
|
||||
.manual-price-form { display: grid; gap: 6px; min-width: 150px; margin-top: 8px; }
|
||||
.manual-price-form .checkbox-label { display: flex; align-items: center; gap: 7px; margin: 0; cursor: pointer; font-size: .8rem; }
|
||||
.manual-price-form .checkbox-label input[type="checkbox"] { width: 18px; min-height: 18px; margin: 0; accent-color: var(--accent); }
|
||||
.manual-price-input { display: grid; gap: 6px; }
|
||||
.manual-price-input[hidden] { display: none; }
|
||||
.manual-price-form input[type="number"] { min-height: 36px; padding: 6px 8px; font-size: .85rem; }
|
||||
.manual-price-form button { min-height: 34px; padding: 6px 10px; font-size: .8rem; }
|
||||
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
|
||||
.paid-form input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--accent); cursor: pointer; }
|
||||
a { color: var(--text); }
|
||||
a:hover { color: var(--accent); }
|
||||
|
||||
.admin-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); gap: 24px; }
|
||||
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
|
||||
.price-grid h3 { margin: 0 0 16px; font-size: 1.1rem; }
|
||||
.price-grid input { margin-bottom: 12px; }
|
||||
.price-group { padding: 16px; border: 1px solid var(--border); }
|
||||
.price-item { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; margin-bottom: 16px; }
|
||||
.price-item:last-child { margin-bottom: 0; }
|
||||
.price-item strong { grid-column: 1 / -1; }
|
||||
.price-item input { margin-bottom: 0; }
|
||||
.price-grid button { grid-column: 1 / -1; justify-self: start; }
|
||||
.user-list { display: grid; gap: 14px; }
|
||||
.user-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
|
||||
.user-actions, .user-actions form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
|
||||
|
||||
label { display: block; margin: 0 0 7px; font-size: .875rem; font-weight: 700; }
|
||||
input { width: 100%; min-height: 44px; padding: 10px 12px; color: var(--text); background: var(--surface); border: 1px solid var(--muted); border-radius: 0; font: inherit; }
|
||||
.user-actions input { width: 180px; min-height: 38px; }
|
||||
input:focus, button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
|
||||
.stacked-form { display: grid; gap: 10px; }
|
||||
.stacked-form label:not(:first-of-type) { margin-top: 8px; }
|
||||
textarea { width: 100%; padding: 10px 12px; color: var(--text); background: var(--surface); border: 1px solid var(--muted); border-radius: 0; font: inherit; resize: vertical; }
|
||||
.bulk-email-preview { margin-top: 24px; padding: 16px; background: #f3fbfb; border: 1px solid var(--accent); }
|
||||
.bulk-email-preview h3 { margin: 0 0 8px; }
|
||||
.bulk-email-preview pre { max-height: 260px; margin: 12px 0 16px; padding: 12px; overflow: auto; white-space: pre-wrap; font: inherit; background: var(--surface); border: 1px solid var(--border); }
|
||||
|
||||
button { min-height: 42px; padding: 9px 16px; color: var(--text); background: var(--accent); border: 2px solid var(--accent); border-radius: 0; cursor: pointer; font: inherit; font-weight: 700; }
|
||||
button:hover { color: #fff; background: var(--text); border-color: var(--text); }
|
||||
.button-secondary { color: var(--text); background: var(--surface); border-color: var(--text); }
|
||||
.button-danger { background: var(--danger); border-color: var(--danger); font-size: .85rem; }
|
||||
.message { margin: 0 0 24px; padding: 14px 16px; background: var(--accent-soft); border-left: 4px solid var(--accent); }
|
||||
.message.error { margin-bottom: 20px; }
|
||||
|
||||
.login-card { width: min(100%, 440px); margin: 10vh auto 0; }
|
||||
.login-card h1 { margin-bottom: 24px; }
|
||||
.login-card form { display: grid; gap: 10px; }
|
||||
.login-card label:not(:first-of-type) { margin-top: 8px; }
|
||||
|
||||
@media (max-width: 900px) {
|
||||
body { padding: 20px 12px; }
|
||||
.admin-grid { grid-template-columns: 1fr; }
|
||||
.price-grid { grid-template-columns: 1fr; }
|
||||
.price-grid button { grid-column: auto; }
|
||||
|
||||
.user-row { align-items: flex-start; flex-direction: column; }
|
||||
}
|
||||
Reference in New Issue
Block a user