Files
cet6-90-day-checkin/app/globals.css
T

148 lines
15 KiB
CSS

@import "tailwindcss";
@import "tw-animate-css";
@import "../vendor/shadcn-tailwind-4.13.0.css";
@utility scrollbar-thin {
scrollbar-width: thin;
}
@utility scrollbar-none {
scrollbar-width: none;
&::-webkit-scrollbar {
display: none;
}
}
@utility scrollbar-gutter-stable {
scrollbar-gutter: stable;
}
:root {
--background: #ffffff;
--foreground: #171717;
--card: #ffffff;
--card-foreground: #171717;
--popover: #ffffff;
--popover-foreground: #171717;
--primary: #171717;
--primary-foreground: #fafafa;
--secondary: #f5f5f5;
--secondary-foreground: #171717;
--muted: #f5f5f5;
--muted-foreground: #737373;
--accent: #f5f5f5;
--accent-foreground: #171717;
--destructive: #e7000b;
--border: #e5e5e5;
--input: #e5e5e5;
--ring: #a1a1a1;
--chart-1: #f54900;
--chart-2: #009689;
--chart-3: #104e64;
--chart-4: #ffb900;
--chart-5: #fe9a00;
--radius: 0.625rem;
--sidebar: #fafafa;
--sidebar-foreground: #171717;
--sidebar-primary: #171717;
--sidebar-primary-foreground: #fafafa;
--sidebar-accent: #f5f5f5;
--sidebar-accent-foreground: #171717;
--sidebar-border: #e5e5e5;
--sidebar-ring: #a1a1a1;
}
@theme inline {
--color-background: var(--background);
--color-foreground: var(--foreground);
--color-card: var(--card);
--color-card-foreground: var(--card-foreground);
--color-popover: var(--popover);
--color-popover-foreground: var(--popover-foreground);
--color-primary: var(--primary);
--color-primary-foreground: var(--primary-foreground);
--color-secondary: var(--secondary);
--color-secondary-foreground: var(--secondary-foreground);
--color-muted: var(--muted);
--color-muted-foreground: var(--muted-foreground);
--color-accent: var(--accent);
--color-accent-foreground: var(--accent-foreground);
--color-destructive: var(--destructive);
--color-border: var(--border);
--color-input: var(--input);
--color-ring: var(--ring);
--color-chart-1: var(--chart-1);
--color-chart-2: var(--chart-2);
--color-chart-3: var(--chart-3);
--color-chart-4: var(--chart-4);
--color-chart-5: var(--chart-5);
--color-sidebar: var(--sidebar);
--color-sidebar-foreground: var(--sidebar-foreground);
--color-sidebar-primary: var(--sidebar-primary);
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
--color-sidebar-accent: var(--sidebar-accent);
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
--color-sidebar-border: var(--sidebar-border);
--color-sidebar-ring: var(--sidebar-ring);
--radius-sm: calc(var(--radius) - 4px);
--radius-md: calc(var(--radius) - 2px);
--radius-lg: var(--radius);
--radius-xl: calc(var(--radius) + 4px);
--font-sans: Arial, Helvetica, sans-serif;
--font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
"Liberation Mono", "Courier New", monospace;
}
@media (prefers-color-scheme: dark) {
:root {
--background: #0a0a0a;
--foreground: #ededed;
--card: #171717;
--card-foreground: #ededed;
--popover: #171717;
--popover-foreground: #ededed;
--primary: #ededed;
--primary-foreground: #171717;
--secondary: #262626;
--secondary-foreground: #ededed;
--muted: #262626;
--muted-foreground: #a1a1a1;
--accent: #262626;
--accent-foreground: #ededed;
--destructive: #ff6467;
--border: #ffffff1a;
--input: #ffffff26;
--ring: #737373;
--chart-1: #8e51ff;
--chart-2: #00bc7d;
--chart-3: #fe9a00;
--chart-4: #ad46ff;
--chart-5: #ff2056;
--sidebar: #171717;
--sidebar-foreground: #ededed;
--sidebar-primary: #8e51ff;
--sidebar-primary-foreground: #ededed;
--sidebar-accent: #262626;
--sidebar-accent-foreground: #ededed;
--sidebar-border: #ffffff1a;
--sidebar-ring: #737373;
}
}
body{margin:0;background:#f5f8ff;color:#172554;font-family:Arial,"PingFang SC","Microsoft YaHei",sans-serif}.shell{max-width:1120px;margin:auto;padding:32px 20px}header{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:28px}.eyebrow{color:#2563eb;font-weight:700;letter-spacing:.14em;font-size:.8rem}h1{font-size:clamp(1.8rem,4vw,2.5rem);margin:8px 0}.sub{color:#64748b;margin:0}.sync{display:flex;gap:8px;align-items:center;background:#fff;padding:10px 14px;border-radius:999px;font-size:.85rem;color:#475569;box-shadow:0 1px 4px #bfdbfe}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.stat,.card,.side{background:#fff;border:1px solid #dbeafe;border-radius:18px;padding:18px}.stat span{float:right;color:#2563eb}.stat p,.stat small{display:block;margin:0;color:#64748b;font-size:.82rem}.stat strong{display:block;margin:12px 0 4px;font-size:1.65rem}.layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:24px;margin-top:24px}.card{padding:0;overflow:hidden;box-shadow:0 16px 50px #dbeafe}.hero{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;text-align:center;gap:10px;padding:24px;background:linear-gradient(120deg,#eaf2ff,#fff)}.hero p{margin:0;color:#2563eb;font-weight:700;font-size:.9rem}.hero h2{margin:6px 0;font-size:1.55rem}.hero small{color:#64748b}.hero [role=progressbar]{grid-column:1/-1;margin-top:10px;height:10px;background:#dbeafe}.hero [data-slot=progress-indicator]{background:#2563eb}.round{width:40px;height:40px;border-radius:50%;border:1px solid #bfdbfe;background:#fff;color:#2563eb}.body{padding:24px}.tasks{display:grid;gap:10px}.task{display:flex;align-items:flex-start;gap:12px;border:1px solid #e2e8f0;border-radius:14px;padding:14px;cursor:pointer}.task:hover{border-color:#93c5fd;background:#f8fbff}.task.done{background:#eff6ff;color:#64748b}.task b{font-size:.78rem;background:#e2e8f0;border-radius:999px;padding:3px 8px;white-space:nowrap}.task.done b{background:#bfdbfe;color:#1d4ed8}.task span{line-height:1.5}.review{border-top:1px solid #e2e8f0;margin-top:22px;padding-top:20px}.review>p{font-weight:700}.pill{border:1px solid #cbd5e1;border-radius:999px;padding:7px 12px;background:white;margin:0 7px 10px 0}.pill.active{background:#2563eb;color:#fff;border-color:#2563eb}.review label{display:block;font-size:.9rem;font-weight:700;margin-top:12px}.review textarea{display:block;width:100%;min-height:92px;margin-top:8px;border:1px solid #cbd5e1;border-radius:12px;padding:12px;font:inherit;outline:none;background:#f8fafc}.review textarea:focus{border-color:#60a5fa;background:white}.dark{border-radius:18px;padding:22px;background:#172554;color:#fff}.dark h2{margin:8px 0}.dark p{color:#cbd5e1;line-height:1.6}.side{margin-top:14px}.side p{font-size:.85rem;color:#64748b;border-left:3px solid #dbeafe;padding-left:10px}.tip{font-size:.85rem;color:#64748b;line-height:1.6;padding:0 8px}@media(max-width:760px){header{align-items:flex-start;flex-direction:column}.stats{grid-template-columns:repeat(2,1fr)}.layout{grid-template-columns:1fr}.shell{padding:22px 14px}.body{padding:16px}}@media(max-width:420px){.stats{grid-template-columns:1fr}.task{gap:8px}.task b{display:none}}
.calendar{margin-top:24px;padding:22px;background:#fff;border:1px solid #dbeafe;border-radius:18px;box-shadow:0 8px 25px #dbeafe}.calendar-head{display:flex;justify-content:space-between;align-items:center;gap:16px}.calendar-head h2{margin:5px 0;font-size:1.4rem}.month-tabs{display:flex;gap:6px}.month-tabs button{border:1px solid #dbeafe;background:#fff;color:#475569;border-radius:999px;padding:7px 11px}.month-tabs button.active{background:#2563eb;color:#fff;border-color:#2563eb}.weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:7px}.weekdays{margin:20px 0 8px;text-align:center;color:#94a3b8;font-size:.78rem}.calendar-day{min-height:68px;border:1px solid #e2e8f0;background:#fff;border-radius:12px;color:#334155;padding:7px;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between}.calendar-day:hover:not(:disabled){border-color:#60a5fa;background:#f8fbff}.calendar-day small{font-size:.68rem;color:#94a3b8}.calendar-day.full{background:#eff6ff;border-color:#93c5fd}.calendar-day.full small{color:#1d4ed8}.calendar-day.partial{background:#fffbeb;border-color:#fde68a}.calendar-day.partial small{color:#a16207}.calendar-day.chosen{outline:3px solid #2563eb;outline-offset:1px}.calendar-day.outside{visibility:hidden}.calendar-note{margin:15px 0 0;color:#64748b;font-size:.8rem}.calendar-note i{display:inline-block;width:9px;height:9px;border-radius:50%;margin:0 5px 0 12px}.calendar-note i:first-child{margin-left:0}.full-dot{background:#2563eb}.partial-dot{background:#f59e0b}.calendar-note span{margin-left:14px}@media(max-width:520px){.calendar{padding:16px}.calendar-head{align-items:flex-start;flex-direction:column}.calendar-day{min-height:52px;padding:5px}.calendar-day small{font-size:.6rem}.weekdays,.calendar-grid{gap:4px}.calendar-note span{display:block;margin:8px 0 0}}
body {
background: var(--background);
color: var(--foreground);
font-family: Arial, Helvetica, sans-serif;
}
.header-actions{display:flex;align-items:center;gap:10px}.overview-link{display:inline-flex;align-items:center;gap:7px;border:1px solid #bfdbfe;background:#fff;color:#1d4ed8;border-radius:999px;padding:10px 14px;font-size:.9rem;font-weight:700;text-decoration:none;white-space:nowrap}.overview-link:hover{background:#eff6ff}.countdown{background:linear-gradient(135deg,#1d4ed8,#2563eb);color:#fff;border-radius:18px;padding:18px;box-shadow:0 12px 28px #bfdbfe}.countdown span{float:right;color:#bfdbfe}.countdown p,.countdown small{display:block;margin:0;color:#dbeafe;font-size:.82rem}.countdown strong{display:block;margin:12px 0 4px;font-size:1.45rem;letter-spacing:.02em}.countdown em{font-style:normal;font-size:.75rem;color:#bfdbfe;margin-right:3px}.task-overview{max-width:1040px}.overview-status{margin:-15px 0 20px;color:#64748b;font-size:.85rem}.type-cards{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-bottom:24px}.type-card{min-height:145px;text-align:left;background:#fff;border:1px solid #dbeafe;border-radius:16px;padding:16px;cursor:pointer;transition:.18s transform,.18s box-shadow}.type-card:hover,.type-card.selected{transform:translateY(-2px);box-shadow:0 12px 25px #dbeafe}.type-card.selected{outline:2px solid currentColor}.type-card>div{display:flex;justify-content:space-between;gap:8px;align-items:baseline}.type-card span{font-weight:700}.type-card b{font-size:.8rem;color:#475569}.type-card small{display:block;margin-top:12px;color:#64748b;line-height:1.45;font-size:.76rem}.type-card [role=progressbar]{height:7px;margin-top:14px;background:#e2e8f0}.type-card.blue{color:#2563eb}.type-card.violet{color:#7c3aed}.type-card.teal{color:#0f766e}.type-card.orange{color:#c2410c}.type-card.rose{color:#be123c}.task-list-panel{background:#fff;border:1px solid #dbeafe;border-radius:18px;overflow:hidden;box-shadow:0 14px 35px #dbeafe}.task-list-head{padding:24px;display:flex;justify-content:space-between;align-items:center;background:linear-gradient(115deg,#eff6ff,#fff);border-bottom:1px solid #dbeafe}.task-list-head h2{margin:5px 0;font-size:1.5rem}.task-list-head p{margin:0;color:#64748b}.type-progress{text-align:right}.type-progress b{display:block;font-size:1.5rem;color:#1d4ed8}.type-progress span{font-size:.8rem;color:#64748b}.all-tasks{display:grid}.task-row{display:grid;grid-template-columns:28px 1fr auto;gap:12px;align-items:center;padding:15px 22px;border-bottom:1px solid #eef2ff;color:#172554;text-decoration:none}.task-row:last-child{border-bottom:0}.task-row:hover{background:#f8fbff}.task-state{color:#94a3b8}.task-row.completed .task-state{color:#2563eb}.task-row.completed{background:#fbfdff}.task-row b{font-size:.85rem}.task-row p{margin:4px 0 0;line-height:1.45}.task-row small{font-size:.76rem;color:#64748b;white-space:nowrap}
@media(max-width:900px){.type-cards{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.header-actions{align-items:flex-start;flex-direction:column}.type-cards{grid-template-columns:repeat(2,1fr)}.task-list-head{align-items:flex-start;flex-direction:column}.type-progress{text-align:left}.task-row{grid-template-columns:24px 1fr;padding:14px}.task-row small{grid-column:2}.countdown{grid-column:span 2}}
@media(max-width:420px){.type-cards{grid-template-columns:1fr}.countdown{grid-column:auto}.task-row p{font-size:.9rem}}
.countdown-dialog{max-width:420px!important;border:0!important;padding:30px!important;text-align:center!important;background:linear-gradient(145deg,#172554,#2563eb)!important;color:#fff!important;box-shadow:0 28px 70px #17255488!important}.dialog-kicker{margin:0;color:#bfdbfe;font-size:.78rem;font-weight:700;letter-spacing:.13em}.countdown-dialog [data-slot=dialog-title]{color:#fff;font-size:1.55rem}.countdown-dialog [data-slot=dialog-description]{color:#dbeafe;font-size:.9rem}.dialog-time{display:flex;justify-content:center;align-items:baseline;gap:7px;margin:12px 0 4px}.dialog-time b{font-size:2.7rem;line-height:1;color:#fff}.dialog-time span{font-size:.86rem;color:#bfdbfe;margin-right:3px}.dialog-note{margin:12px 0 20px;color:#dbeafe;font-size:.9rem}.dialog-button{width:100%;border:0;border-radius:12px;background:#fff;color:#1d4ed8;padding:12px;font:inherit;font-weight:700;cursor:pointer}.dialog-button:hover{background:#eff6ff}
.calendar-day.makeup{background:#fff7ed;border-color:#fdba74}.calendar-day.makeup small{color:#c2410c}.makeup-dot{background:#f97316}.task.locked{cursor:not-allowed;opacity:.52;background:#f8fafc}.task.locked:hover{border-color:#e2e8f0;background:#f8fafc}.pill:disabled,.review textarea:disabled{cursor:not-allowed;opacity:.55}.stats-page{max-width:1100px}.insight-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.insight{background:#fff;border:1px solid #dbeafe;border-radius:18px;padding:18px;box-shadow:0 7px 22px #dbeafe66}.insight span{float:right;color:#2563eb}.insight p,.insight small{display:block;margin:0;color:#64748b;font-size:.82rem}.insight strong{display:block;margin:12px 0 4px;font-size:1.7rem}.charts{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:24px}.chart-card,.stat-detail{background:#fff;border:1px solid #dbeafe;border-radius:18px;padding:22px;box-shadow:0 10px 26px #dbeafe66}.chart-card h2,.stat-detail h2{margin:5px 0;font-size:1.3rem}.stat-detail{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:20px}.stat-detail>div:first-child{max-width:400px}.stat-detail p:not(.eyebrow){color:#64748b;line-height:1.6;margin:8px 0 0}.legend{display:grid;gap:8px;min-width:115px;color:#475569;font-size:.85rem}.legend i{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:5px}.legend .normal-dot{background:#2563eb}@media(max-width:820px){.insight-cards{grid-template-columns:repeat(2,1fr)}.charts{grid-template-columns:1fr}.stat-detail{align-items:flex-start;flex-wrap:wrap}}@media(max-width:480px){.insight-cards{grid-template-columns:1fr}.chart-card{padding:16px}.stat-detail{padding:16px}}