Files
agiledancers/agiledancers-fe/src/styles.css
2026-10-27 15:34:56 +01:00

1024 lines
17 KiB
CSS

:root {
--ink: #202f2b;
--muted: #68766e;
--forest: #245b46;
--lime: #e0edbe;
--line: #e2e7e0;
--canvas: #f7f8f4;
font-family: 'Avenir Next', 'Segoe UI', Arial, sans-serif;
color: var(--ink);
background: var(--canvas);
font-synthesis: none;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
}
button,
input,
select {
font: inherit;
}
a {
color: inherit;
text-decoration: none;
}
button,
a,
input,
select {
-webkit-tap-highlight-color: transparent;
}
button {
cursor: pointer;
}
button:disabled {
cursor: not-allowed;
opacity: 0.55;
}
button,
input,
select,
a {
transition:
background-color 0.15s,
border-color 0.15s,
box-shadow 0.15s;
}
:focus-visible {
outline: 3px solid #b18539;
outline-offset: 4px;
}
h1,
h2,
h3,
p {
margin-top: 0;
}
h1 {
font-size: clamp(27px, 2.5vw, 39px);
letter-spacing: -1.5px;
font-weight: 600;
line-height: 1.2;
margin-bottom: 14px;
overflow-wrap: anywhere;
}
h2 {
font-size: 21px;
font-weight: 600;
letter-spacing: -0.6px;
line-height: 1.35;
margin-bottom: 10px;
}
h3 {
font-size: 17px;
line-height: 1.35;
font-weight: 600;
letter-spacing: -0.3px;
margin-bottom: 8px;
overflow-wrap: anywhere;
}
p {
line-height: 1.65;
}
.eyebrow {
font-size: 9px;
font-weight: 700;
letter-spacing: 2px;
color: var(--forest);
margin-bottom: 15px;
}
.lede {
font-size: 13px;
color: var(--muted);
margin-bottom: 0;
}
.muted,
.form-hint {
color: var(--muted);
font-size: 12px;
}
.nowrap {
white-space: nowrap;
}
.page-heading {
display: flex;
align-items: center;
justify-content: space-between;
gap: 26px;
margin-bottom: 36px;
}
.page-heading > .button {
flex-shrink: 0;
}
.button {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 10px;
border: 1px solid transparent;
border-radius: 7px;
padding: 12px 18px;
font-size: 12px;
font-weight: 650;
line-height: 1.3;
min-height: 42px;
}
.primary {
background: var(--forest);
color: white;
border-color: var(--forest);
}
.primary:hover:not(:disabled) {
background: #194633;
}
.secondary {
background: white;
border-color: #d6ded6;
color: var(--ink);
}
.secondary:hover:not(:disabled) {
background: #f1f5ee;
border-color: #8fa693;
}
.light {
background: #e0edbe;
color: #234b38;
}
.light:hover {
background: #ebf4d6;
}
.danger {
background: #a53535;
color: white;
}
.danger:hover:not(:disabled) {
background: #872828;
}
.danger-outline {
color: #9b3e3e;
border-color: #e5c7c7;
background: transparent;
}
.danger-outline:hover {
background: #fff2f0;
}
.text-button {
border: 0;
background: none;
color: var(--forest);
font-size: 12px;
font-weight: 650;
padding: 10px 6px;
}
.text-button:hover {
text-decoration: underline;
}
.destructive {
color: #9b4444;
}
.icon-button {
background: #f1f4ee;
width: 34px;
height: 34px;
font-size: 24px;
border: none;
border-radius: 50%;
flex-shrink: 0;
color: var(--ink);
}
.full-width {
width: 100%;
}
.stats-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 18px;
margin-bottom: 38px;
}
.stat {
background: #fff;
border: 1px solid var(--line);
border-radius: 10px;
padding: 22px 24px;
display: flex;
flex-direction: column;
}
a.stat:hover {
border-color: #8ea48f;
}
.stat-label {
font-size: 12px;
font-weight: 600;
display: flex;
justify-content: space-between;
}
.stat-label > span {
color: var(--muted);
}
.stat > strong {
font-size: 39px;
line-height: 1.3;
font-weight: 500;
letter-spacing: -1.5px;
margin: 8px 0;
}
.stat-caption {
font-size: 10px;
color: var(--muted);
}
.section-heading {
display: flex;
justify-content: space-between;
align-items: center;
gap: 18px;
margin: 8px 0 22px;
}
.section-heading h2 {
margin-bottom: 0;
display: flex;
align-items: center;
gap: 10px;
}
.section-heading p {
margin: 7px 0 0;
}
.section-heading > .muted {
font-size: 10px;
}
.count-badge {
background: #e6ece2;
color: var(--forest);
font-size: 10px;
letter-spacing: 0;
padding: 4px 8px;
border-radius: 5px;
}
.school-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(min(100%, 255px), 1fr));
gap: 20px;
}
.school-card,
.group-card {
min-width: 0;
background: #fff;
padding: 24px;
border: 1px solid var(--line);
border-radius: 10px;
}
.school-card:hover {
border-color: #8ea48f;
box-shadow: 0 5px 18px #243e2910;
}
.card-top {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 25px;
gap: 12px;
}
.avatar {
background: #e9eddc;
color: var(--forest);
border-radius: 12px;
width: 48px;
height: 48px;
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 24px;
font-weight: 600;
flex-shrink: 0;
}
.avatar.small {
width: 32px;
height: 32px;
font-size: 14px;
border-radius: 50%;
}
.avatar.large {
width: 68px;
height: 68px;
font-size: 32px;
border-radius: 18px;
}
.round-arrow {
background: #f6f8f3;
border: 1px solid var(--line);
border-radius: 50%;
width: 28px;
height: 28px;
display: grid;
place-items: center;
font-size: 15px;
}
.school-card > p {
color: var(--muted);
font-size: 11px;
margin-bottom: 26px;
}
.card-meta {
display: flex;
flex-wrap: wrap;
gap: 16px;
font-size: 10px;
color: var(--muted);
padding-bottom: 20px;
}
.card-meta strong {
color: var(--ink);
font-weight: 650;
}
.card-link {
padding-top: 16px;
border-top: 1px solid var(--line);
font-size: 11px;
font-weight: 650;
color: var(--forest);
display: flex;
justify-content: space-between;
}
.tip-panel {
display: flex;
align-items: center;
gap: 22px;
background: #edf0e4;
border-radius: 10px;
padding: 24px 28px;
margin-top: 32px;
}
.tip-panel h3 {
font-size: 14px;
}
.tip-panel p {
color: #66735e;
font-size: 11px;
margin: 0;
max-width: 650px;
}
.tip-icon {
font-size: 34px;
color: #647d39;
}
.empty-state {
text-align: center;
background: #fff;
border: 1px dashed #cdd8c9;
border-radius: 10px;
padding: 52px 24px;
}
.empty-state.full-width {
grid-column: 1 / -1;
}
.empty-state p {
max-width: 420px;
margin: 0 auto 22px;
font-size: 13px;
color: var(--muted);
}
.empty-symbol {
width: 64px;
height: 64px;
border-radius: 50%;
background: #edf1e3;
color: #597451;
display: grid;
place-items: center;
font-size: 42px;
margin: 0 auto 22px;
}
.loading-state {
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
min-height: 280px;
color: var(--muted);
font-size: 14px;
}
.spinner {
width: 20px;
height: 20px;
border: 2px solid #d6e1d5;
border-top-color: var(--forest);
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
.alert {
border-radius: 8px;
padding: 15px 18px;
font-size: 13px;
line-height: 1.6;
margin: 0 0 22px;
}
.alert p:last-child {
margin-bottom: 0;
}
.alert.error {
background: #fff0ed;
color: #88342b;
border: 1px solid #edc9c1;
}
.alert.success {
display: flex;
justify-content: space-between;
gap: 18px;
background: #e9f3e5;
color: #315d36;
border: 1px solid #cfdfc8;
}
.alert.success > button {
color: inherit;
background: transparent;
border: none;
font-size: 20px;
}
.back-link {
display: inline-block;
color: var(--muted);
font-size: 11px;
margin-bottom: 28px;
}
.back-link:hover {
color: var(--forest);
text-decoration: underline;
}
.school-title {
display: flex;
align-items: center;
gap: 22px;
min-width: 0;
}
.school-title .eyebrow {
margin-bottom: 8px;
}
.school-title h1 {
margin-bottom: 8px;
}
.tabs {
display: flex;
gap: 26px;
border-bottom: 1px solid #dce3d8;
margin-bottom: 30px;
overflow-x: auto;
}
.tabs > a {
display: flex;
align-items: center;
gap: 8px;
padding: 14px 2px;
white-space: nowrap;
border-bottom: 2px solid transparent;
font-size: 12px;
font-weight: 550;
color: var(--muted);
}
.tabs > a.active {
color: var(--forest);
border-bottom-color: var(--forest);
font-weight: 700;
}
.tabs > a > span {
background: #e8ede4;
padding: 2px 6px;
border-radius: 5px;
font-size: 9px;
}
.overview-grid {
display: grid;
grid-template-columns: 1.3fr 1fr;
gap: 24px;
}
.panel {
background: white;
border: 1px solid var(--line);
border-radius: 10px;
padding: 28px;
}
.panel > .muted {
max-width: 350px;
}
.quick-actions {
margin-top: 22px;
}
.quick-actions button {
display: flex;
gap: 16px;
align-items: center;
text-align: left;
border: 0;
border-top: 1px solid var(--line);
background: white;
width: 100%;
padding: 18px 0;
color: var(--ink);
}
.quick-actions button:last-child {
padding-bottom: 0;
}
.quick-actions button:hover strong {
color: var(--forest);
text-decoration: underline;
}
.step-number {
font-size: 11px;
background: #f1f4ec;
color: #718663;
border-radius: 8px;
display: grid;
place-items: center;
width: 34px;
height: 34px;
flex-shrink: 0;
}
.quick-actions strong {
display: block;
font-size: 12px;
margin-bottom: 5px;
font-weight: 650;
}
.quick-actions small {
font-size: 10px;
color: var(--muted);
}
.quick-actions button > span:last-child {
margin-left: auto;
color: var(--forest);
}
.show-spotlight {
background: #254f40;
color: white;
border-radius: 10px;
padding: 30px;
position: relative;
overflow: hidden;
display: flex;
flex-direction: column;
align-items: flex-start;
}
.show-spotlight .eyebrow {
color: #cedcba;
position: relative;
}
.show-spotlight h2 {
font-size: 30px;
margin-top: 26px;
line-height: 1.2;
letter-spacing: -1px;
position: relative;
}
.show-spotlight p:not(.eyebrow) {
color: #d5e0d2;
font-size: 12px;
max-width: 260px;
position: relative;
}
.show-spotlight .button {
margin-top: auto;
position: relative;
}
.spotlight-decoration {
position: absolute;
color: #3d6650;
right: -20px;
top: 5px;
font-size: 200px;
line-height: 1;
transform: rotate(16deg);
}
.danger-zone {
display: flex;
justify-content: space-between;
align-items: center;
gap: 24px;
padding-top: 28px;
margin-top: 44px;
border-top: 1px solid var(--line);
}
.danger-zone h3 {
font-size: 12px;
}
.danger-zone p {
color: var(--muted);
font-size: 10px;
margin: 0;
}
.search-field {
display: flex;
align-items: center;
gap: 12px;
max-width: 320px;
margin-bottom: 20px;
}
.search-field > span {
font-size: 26px;
color: var(--muted);
}
.search-field input {
margin: 0;
}
.table-container {
overflow-x: auto;
border-radius: 10px;
border: 1px solid var(--line);
background: white;
}
table {
border-collapse: collapse;
width: 100%;
font-size: 12px;
}
th {
font-size: 10px;
letter-spacing: 0.6px;
text-transform: uppercase;
color: var(--muted);
background: #f1f4ed;
text-align: left;
padding: 16px 20px;
font-weight: 650;
}
td {
border-top: 1px solid var(--line);
padding: 18px 20px;
}
td .empty-state {
border: none;
}
.person {
display: flex;
gap: 10px;
align-items: center;
min-width: 145px;
}
.person > strong {
font-weight: 600;
}
.row-actions {
display: flex;
justify-content: flex-end;
align-items: center;
gap: 8px;
}
.group-symbol {
background: #eef1df;
border-radius: 10px;
width: 36px;
height: 36px;
color: #637739;
display: grid;
place-items: center;
font-size: 23px;
}
.tag {
background: #eaf2e7;
color: #486e3d;
font-size: 9px;
font-weight: 650;
padding: 6px 9px;
border-radius: 5px;
}
.tag-list {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin: 14px 0 24px;
}
.style-tag {
background: #f0f2ec;
color: #56644e;
border-radius: 4px;
padding: 5px 8px;
font-size: 10px;
}
.card-bottom {
display: flex;
justify-content: space-between;
padding-top: 14px;
margin-top: 16px;
border-top: 1px solid var(--line);
}
.group-card > .muted {
margin-bottom: 8px;
}
.show-list {
display: grid;
gap: 16px;
}
.show-card {
display: flex;
gap: 24px;
align-items: center;
background: #fff;
border: 1px solid var(--line);
border-radius: 10px;
padding: 26px;
}
.date-tile {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 84px;
min-height: 90px;
background: #eef1e1;
border-radius: 9px;
flex-shrink: 0;
color: var(--forest);
}
.date-tile > strong {
font-size: 34px;
line-height: 1.2;
font-weight: 550;
}
.date-tile > span {
font-size: 10px;
margin-top: 5px;
}
.show-details {
flex: 1;
min-width: 0;
}
.show-details .tag-list {
margin: 12px 0;
}
.show-details p {
margin: 0;
font-size: 10px;
}
dialog {
border: 1px solid var(--line);
border-radius: 14px;
padding: 28px;
width: min(520px, calc(100% - 32px));
max-height: calc(100dvh - 48px);
color: var(--ink);
box-shadow: 0 18px 80px #13291f30;
}
dialog::backdrop {
background: #14241e66;
backdrop-filter: blur(3px);
}
.dialog-heading {
display: flex;
justify-content: space-between;
gap: 20px;
align-items: flex-start;
margin-bottom: 24px;
}
.dialog-heading .eyebrow {
margin-bottom: 8px;
font-size: 8px;
}
.dialog-heading h2 {
margin: 0;
}
.dialog-actions {
display: flex;
justify-content: flex-end;
gap: 10px;
margin-top: 28px;
padding-top: 20px;
border-top: 1px solid var(--line);
}
form > label {
display: block;
}
label {
font-size: 12px;
font-weight: 600;
}
input:not([type='checkbox']),
select {
background: #fff;
color: var(--ink);
border: 1px solid #cfd8cc;
border-radius: 6px;
display: block;
width: 100%;
padding: 11px 12px;
min-height: 43px;
margin: 8px 0 20px;
font-size: 13px;
font-weight: 400;
}
input:not([type='checkbox']):focus,
select:focus {
border-color: var(--forest);
}
input.ng-invalid.ng-touched {
border-color: #b64f41;
}
input[type='checkbox'] {
accent-color: var(--forest);
width: 17px;
height: 17px;
flex-shrink: 0;
}
.form-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 18px;
}
fieldset {
margin: 0;
padding: 0;
border: 0;
}
legend {
font-size: 12px;
font-weight: 600;
margin-bottom: 12px;
}
.checkbox-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
}
.checkbox {
display: flex;
gap: 8px;
align-items: center;
font-weight: 400;
}
.form-hint {
background: #f1f4ec;
padding: 12px;
border-radius: 6px;
font-size: 11px;
}
.member-list {
max-height: 340px;
overflow-y: auto;
}
.member-row {
display: flex;
gap: 12px;
align-items: center;
padding: 14px 2px;
border-top: 1px solid var(--line);
}
.member-row input {
margin-left: auto;
}
.member-count {
font-size: 11px;
color: var(--forest);
font-weight: 600;
margin-top: 20px;
}
.empty-inline {
color: var(--muted);
font-size: 13px;
padding: 20px 0;
}
.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;
}
.skip-link {
position: fixed;
left: 16px;
top: -100px;
z-index: 100;
background: white;
padding: 14px 20px;
border: 2px solid var(--forest);
}
.skip-link:focus {
top: 16px;
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation: none !important;
transition: none !important;
}
}
@media (max-width: 1100px) {
.page-heading {
align-items: flex-start;
}
.page-heading:not(.school-heading) {
flex-direction: column;
gap: 20px;
}
.stat {
padding: 18px;
}
.overview-grid {
grid-template-columns: 1fr;
}
.show-spotlight {
min-height: 300px;
}
.show-spotlight h2 {
margin-top: 12px;
}
.show-card {
flex-wrap: wrap;
}
.show-card .row-actions {
margin-left: auto;
}
}
@media (max-width: 600px) {
h1 {
font-size: 29px;
}
.stats-grid {
gap: 9px;
margin-bottom: 28px;
}
.stat {
padding: 14px 12px;
}
.stat-label {
font-size: 10px;
}
.stat > strong {
font-size: 29px;
}
.stat-caption {
font-size: 9px;
line-height: 1.5;
}
.section-heading {
align-items: flex-start;
flex-direction: column;
gap: 14px;
}
.section-heading > .muted {
display: none;
}
.school-heading {
flex-direction: column;
}
.school-title {
gap: 14px;
}
.avatar.large {
width: 50px;
height: 50px;
font-size: 25px;
}
.school-title h1 {
font-size: 26px;
}
.tabs {
gap: 22px;
}
.tabs > a {
font-size: 11px;
}
.tip-panel {
padding: 22px;
align-items: flex-start;
}
.danger-zone {
flex-direction: column;
align-items: flex-start;
}
.panel {
padding: 22px;
}
.show-card {
padding: 20px;
gap: 18px;
}
.date-tile {
width: 65px;
min-height: 80px;
}
.show-details {
flex-basis: calc(100% - 83px);
}
.show-card .row-actions {
width: 100%;
border-top: 1px solid var(--line);
padding-top: 8px;
}
dialog {
padding: 24px 20px;
}
.dialog-actions .button {
padding: 12px 14px;
}
}