add app.css

This commit is contained in:
Dinarassan 2026-05-22 13:59:20 +05:00
parent ceb0f081d8
commit 937f321d3d

733
app.css Normal file
View File

@ -0,0 +1,733 @@
/* ========== Design tokens ========== */
:root {
--bg: #f6f7f9;
--surface: #ffffff;
--surface-2:#f1f3f6;
--border: #e3e6eb;
--border-strong:#cdd2dc;
--text: #14181f;
--text-muted:#5b6573;
--text-faint:#8893a3;
--primary: #2563eb;
--primary-hover:#1e4fc7;
--primary-soft:#e0eaff;
--danger: #dc2626;
--warning: #d97706;
--success: #16a34a;
--shadow-sm:0 1px 2px rgba(20,24,31,0.06);
--shadow-md:0 4px 12px rgba(20,24,31,0.08);
--radius: 8px;
--radius-lg:12px;
--sidebar-w:260px;
--topbar-h: 56px;
--mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
font-size: 14px;
line-height: 1.5;
color: var(--text);
background: var(--bg);
}
#app { min-height: 100vh; }
.boot-loading {
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
color: var(--text-faint);
}
/* ========== Layout shell ========== */
.shell {
display: grid;
grid-template-columns: var(--sidebar-w) 1fr;
grid-template-rows: var(--topbar-h) 1fr;
grid-template-areas:
"sidebar topbar"
"sidebar main";
height: 100vh;
}
.sidebar {
grid-area: sidebar;
background: var(--surface);
border-right: 1px solid var(--border);
display: flex;
flex-direction: column;
overflow: hidden;
}
.sidebar-header {
padding: 14px 16px;
border-bottom: 1px solid var(--border);
display: flex;
align-items: center;
gap: 8px;
}
.brand {
font-weight: 700;
font-size: 16px;
letter-spacing: -0.01em;
}
.brand-mark {
width: 28px; height: 28px;
border-radius: 7px;
background: var(--primary);
color: white;
display: grid; place-items: center;
font-weight: 700;
}
.sidebar-nav { padding: 8px 6px; }
.sidebar-section-title {
font-size: 11px;
letter-spacing: 0.06em;
text-transform: uppercase;
color: var(--text-faint);
padding: 12px 12px 6px;
}
.sidebar-link {
display: flex;
align-items: center;
gap: 10px;
padding: 7px 12px;
border-radius: 6px;
color: var(--text);
text-decoration: none;
font-weight: 500;
cursor: pointer;
}
.sidebar-link:hover { background: var(--surface-2); }
.sidebar-link.active { background: var(--primary-soft); color: var(--primary); }
.sidebar-link .ico { width: 16px; opacity: 0.7; }
.sidebar-link.active .ico { opacity: 1; }
.sidebar-clients { padding: 4px 6px 16px; overflow-y: auto; flex: 1; }
.client-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 6px 12px;
border-radius: 6px;
cursor: pointer;
font-size: 13px;
}
.client-item:hover { background: var(--surface-2); }
.client-item.active { background: var(--primary-soft); color: var(--primary); font-weight: 500; }
.client-item .dot {
width: 7px; height: 7px; border-radius: 999px; background: var(--text-faint);
}
.client-item .dot.active { background: var(--success); }
.client-item .dot.on_hold { background: var(--warning); }
.client-item .dot.archived { background: var(--text-faint); }
.sidebar-footer {
padding: 10px 12px;
border-top: 1px solid var(--border);
display: flex;
align-items: center;
gap: 8px;
font-size: 12px;
color: var(--text-muted);
}
.topbar {
grid-area: topbar;
background: var(--surface);
border-bottom: 1px solid var(--border);
display: flex;
align-items: center;
padding: 0 20px;
gap: 16px;
}
.topbar-search {
flex: 1;
max-width: 500px;
position: relative;
}
.topbar-search input {
width: 100%;
border: 1px solid var(--border);
background: var(--surface-2);
border-radius: 6px;
padding: 7px 12px 7px 32px;
font-size: 13px;
outline: none;
}
.topbar-search input:focus { border-color: var(--primary); background: var(--surface); }
.topbar-search::before {
content: "🔍";
position: absolute;
left: 10px; top: 50%;
transform: translateY(-50%);
font-size: 12px;
opacity: 0.5;
}
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-button {
background: transparent;
border: 1px solid transparent;
border-radius: 6px;
width: 32px; height: 32px;
display: grid; place-items: center;
cursor: pointer;
font-size: 16px;
position: relative;
}
.icon-button:hover { background: var(--surface-2); }
.icon-button .badge {
position: absolute;
top: 2px; right: 2px;
background: var(--danger);
color: white;
font-size: 10px;
font-weight: 700;
padding: 1px 5px;
border-radius: 999px;
}
.avatar {
width: 28px; height: 28px;
border-radius: 999px;
background: var(--primary);
color: white;
font-size: 11px;
font-weight: 600;
display: grid; place-items: center;
flex-shrink: 0;
}
.avatar.sm { width: 20px; height: 20px; font-size: 9px; }
.avatar.lg { width: 40px; height: 40px; font-size: 14px; }
.main {
grid-area: main;
overflow-y: auto;
padding: 24px 32px;
}
/* ========== Page elements ========== */
.page-header {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 16px;
margin-bottom: 24px;
}
.page-title {
font-size: 22px;
font-weight: 700;
margin: 0 0 4px;
letter-spacing: -0.01em;
}
.page-subtitle {
color: var(--text-muted);
font-size: 13px;
margin: 0;
}
.breadcrumb {
font-size: 12px;
color: var(--text-muted);
margin-bottom: 8px;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { margin: 0 6px; opacity: 0.5; }
.btn {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 7px 14px;
border-radius: 6px;
border: 1px solid var(--border-strong);
background: var(--surface);
color: var(--text);
font-size: 13px;
font-weight: 500;
cursor: pointer;
font-family: inherit;
}
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--primary); color: white; border-color: var(--primary); }
.btn.primary:hover { background: var(--primary-hover); }
.btn.danger { color: var(--danger); border-color: var(--danger); background: var(--surface); }
.btn.danger:hover { background: #fef2f2; }
.btn.ghost { border-color: transparent; }
.btn.sm { padding: 4px 8px; font-size: 12px; }
.card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-sm);
}
.tabs {
display: flex;
gap: 4px;
border-bottom: 1px solid var(--border);
margin-bottom: 16px;
}
.tab {
padding: 8px 14px;
border: none;
background: transparent;
font-size: 13px;
font-weight: 500;
color: var(--text-muted);
cursor: pointer;
border-bottom: 2px solid transparent;
margin-bottom: -1px;
font-family: inherit;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.chip {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 2px 8px;
font-size: 11px;
font-weight: 500;
border-radius: 999px;
background: var(--surface-2);
color: var(--text-muted);
border: 1px solid var(--border);
}
.chip.primary { background: var(--primary-soft); color: var(--primary); border-color: transparent; }
.status-pill {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 2px 9px;
border-radius: 999px;
font-size: 11px;
font-weight: 600;
text-transform: capitalize;
}
.status-pill::before {
content: "";
width: 6px; height: 6px;
border-radius: 999px;
background: currentColor;
}
.status-todo { background: #f1f3f6; color: #5b6573; }
.status-in_progress { background: #fef3c7; color: #a16207; }
.status-blocked { background: #fee2e2; color: #b91c1c; }
.status-in_review { background: #e0e7ff; color: #4338ca; }
.status-done { background: #dcfce7; color: #15803d; }
.status-active { background: #dcfce7; color: #15803d; }
.status-on_hold { background: #fef3c7; color: #a16207; }
.status-archived { background: #f1f3f6; color: #5b6573; }
.status-planned { background: #e0e7ff; color: #4338ca; }
.status-completed { background: #dcfce7; color: #15803d; }
.status-cancelled { background: #fee2e2; color: #b91c1c; }
.priority-pill {
display: inline-flex;
align-items: center;
padding: 1px 7px;
border-radius: 4px;
font-size: 10px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.04em;
}
.priority-low { background: #f1f3f6; color: #5b6573; }
.priority-medium { background: #dbeafe; color: #1d4ed8; }
.priority-high { background: #fed7aa; color: #c2410c; }
.priority-urgent { background: #fecaca; color: #b91c1c; }
/* ========== Kanban ========== */
.kanban {
display: grid;
grid-template-columns: repeat(5, minmax(220px, 1fr));
gap: 12px;
overflow-x: auto;
padding-bottom: 6px;
}
.kanban-column {
background: var(--surface-2);
border-radius: var(--radius);
padding: 10px;
min-height: 200px;
display: flex;
flex-direction: column;
gap: 8px;
}
.kanban-column.drag-over { background: #e0eaff; outline: 2px dashed var(--primary); }
.kanban-column-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 2px 6px;
font-size: 12px;
font-weight: 600;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.04em;
}
.kanban-column-count {
background: var(--surface);
border-radius: 999px;
padding: 1px 7px;
font-size: 11px;
color: var(--text);
}
.task-card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 7px;
padding: 10px 12px;
cursor: grab;
box-shadow: var(--shadow-sm);
font-size: 13px;
display: flex;
flex-direction: column;
gap: 6px;
}
.task-card:active { cursor: grabbing; }
.task-card.dragging { opacity: 0.4; }
.task-card-title { font-weight: 500; }
.task-card-meta {
display: flex;
align-items: center;
justify-content: space-between;
gap: 6px;
font-size: 11px;
color: var(--text-muted);
}
.task-card-meta .left { display: flex; align-items: center; gap: 6px; }
/* ========== Lists ========== */
.list-row {
display: flex;
align-items: center;
gap: 12px;
padding: 10px 12px;
border-radius: 6px;
border: 1px solid var(--border);
background: var(--surface);
margin-bottom: 6px;
font-size: 13px;
cursor: pointer;
}
.list-row:hover { border-color: var(--border-strong); }
.list-row .grow { flex: 1; min-width: 0; }
.list-row .title { font-weight: 500; }
.list-row .sub { color: var(--text-muted); font-size: 12px; }
.grid-cards {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
gap: 12px;
}
.empty {
text-align: center;
padding: 40px 20px;
color: var(--text-muted);
font-size: 13px;
}
/* ========== Calendar ========== */
.calendar-toolbar {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 16px;
}
.calendar-toolbar .spacer { flex: 1; }
.calendar-month-label { font-weight: 600; font-size: 16px; min-width: 160px; text-align: center; }
.calendar-grid {
display: grid;
grid-template-columns: repeat(7, 1fr);
border: 1px solid var(--border);
border-radius: var(--radius);
overflow: hidden;
background: var(--surface);
}
.calendar-dow {
padding: 8px 10px;
font-size: 11px;
font-weight: 600;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.04em;
border-bottom: 1px solid var(--border);
background: var(--surface-2);
}
.calendar-day {
min-height: 100px;
padding: 6px 8px;
border-right: 1px solid var(--border);
border-bottom: 1px solid var(--border);
display: flex;
flex-direction: column;
gap: 3px;
background: var(--surface);
}
.calendar-day:nth-child(7n) { border-right: none; }
.calendar-day.other-month { background: var(--surface-2); color: var(--text-faint); }
.calendar-day.today .calendar-day-num { background: var(--primary); color: white; border-radius: 999px; width: 24px; height: 24px; display: grid; place-items: center; }
.calendar-day-num { font-size: 12px; font-weight: 600; }
.cal-event {
font-size: 11px;
padding: 2px 6px;
border-radius: 4px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
cursor: pointer;
}
.cal-event.task { background: #dbeafe; color: #1d4ed8; }
.cal-event.meeting { background: #fde68a; color: #92400e; font-weight: 500; }
/* ========== Chat ========== */
.chat-layout {
display: grid;
grid-template-columns: 240px 1fr;
gap: 16px;
height: calc(100vh - var(--topbar-h) - 96px);
}
.chat-channels {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
overflow-y: auto;
padding: 8px 4px;
}
.chat-channels h3 {
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--text-faint);
padding: 10px 12px 4px;
margin: 0;
}
.chat-channel {
padding: 6px 12px;
border-radius: 6px;
cursor: pointer;
font-size: 13px;
display: flex;
align-items: center;
gap: 8px;
}
.chat-channel:hover { background: var(--surface-2); }
.chat-channel.active { background: var(--primary-soft); color: var(--primary); font-weight: 500; }
.chat-pane {
display: flex;
flex-direction: column;
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
overflow: hidden;
}
.chat-pane-header {
padding: 12px 16px;
border-bottom: 1px solid var(--border);
font-weight: 600;
}
.chat-messages {
flex: 1;
overflow-y: auto;
padding: 12px 16px;
display: flex;
flex-direction: column;
gap: 10px;
}
.chat-message {
display: flex;
gap: 10px;
}
.chat-message .body {
background: var(--surface-2);
padding: 6px 10px;
border-radius: 8px;
max-width: 70%;
}
.chat-message.mine .body { background: var(--primary-soft); color: var(--primary); }
.chat-message .meta { font-size: 11px; color: var(--text-faint); margin-bottom: 2px; }
.chat-input-row {
border-top: 1px solid var(--border);
display: flex;
padding: 10px 12px;
gap: 8px;
}
.chat-input-row input {
flex: 1;
border: 1px solid var(--border);
border-radius: 6px;
padding: 8px 10px;
font-size: 13px;
font-family: inherit;
outline: none;
}
.chat-input-row input:focus { border-color: var(--primary); }
/* ========== Forms / inputs ========== */
.input, .select, .textarea {
border: 1px solid var(--border);
border-radius: 6px;
padding: 7px 10px;
font-size: 13px;
font-family: inherit;
background: var(--surface);
color: var(--text);
outline: none;
width: 100%;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); }
.field-label { font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 4px; display: block; }
.field { margin-bottom: 12px; }
/* ========== Modal ========== */
.modal-backdrop {
position: fixed; inset: 0;
background: rgba(20,24,31,0.5);
display: grid; place-items: center;
z-index: 100;
padding: 20px;
}
.modal {
background: var(--surface);
border-radius: var(--radius-lg);
width: 100%;
max-width: 520px;
max-height: 90vh;
overflow-y: auto;
box-shadow: var(--shadow-md);
}
.modal-header {
padding: 16px 20px;
border-bottom: 1px solid var(--border);
display: flex;
align-items: center;
justify-content: space-between;
}
.modal-header h2 { margin: 0; font-size: 16px; }
.modal-body { padding: 16px 20px; }
.modal-footer {
padding: 12px 20px;
border-top: 1px solid var(--border);
display: flex;
gap: 8px;
justify-content: flex-end;
}
/* ========== Dropdown ========== */
.dropdown {
position: absolute;
top: calc(100% + 6px);
right: 0;
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
box-shadow: var(--shadow-md);
min-width: 320px;
z-index: 50;
max-height: 400px;
overflow-y: auto;
}
.dropdown-header {
padding: 10px 14px;
border-bottom: 1px solid var(--border);
font-size: 12px;
font-weight: 600;
color: var(--text-muted);
display: flex;
justify-content: space-between;
align-items: center;
}
.dropdown-item {
padding: 10px 14px;
font-size: 13px;
border-bottom: 1px solid var(--border);
cursor: pointer;
display: flex;
flex-direction: column;
gap: 2px;
}
.dropdown-item:hover { background: var(--surface-2); }
.dropdown-item.unread { background: #f0f5ff; }
.dropdown-item .meta { font-size: 11px; color: var(--text-faint); }
.relative { position: relative; }
/* ========== Activity ========== */
.activity-list { display: flex; flex-direction: column; gap: 4px; }
.activity-item {
display: flex;
gap: 10px;
padding: 8px 10px;
border-radius: 6px;
font-size: 13px;
}
.activity-item:hover { background: var(--surface-2); }
.activity-item .when { color: var(--text-faint); font-size: 11px; }
/* ========== Misc ========== */
.row { display: flex; gap: 10px; align-items: center; }
.row.between { justify-content: space-between; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.stack-md { display: flex; flex-direction: column; gap: 16px; }
.mt-md { margin-top: 16px; }
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }
.mono { font-family: var(--mono); }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* ========== Login ========== */
.login-shell {
min-height: 100vh;
display: grid;
place-items: center;
background: linear-gradient(135deg, #eaf1ff 0%, #f6f7f9 100%);
padding: 24px;
}
.login-card {
background: var(--surface);
border-radius: 16px;
padding: 32px;
box-shadow: var(--shadow-md);
width: 100%;
max-width: 380px;
text-align: center;
}
.login-card h1 { margin: 0 0 6px; font-size: 22px; }
.login-card p { color: var(--text-muted); font-size: 13px; margin: 0 0 24px; }
.user-pick {
display: flex;
align-items: center;
gap: 12px;
padding: 10px 12px;
border: 1px solid var(--border);
border-radius: var(--radius);
cursor: pointer;
width: 100%;
background: var(--surface);
font: inherit;
text-align: left;
margin-bottom: 8px;
}
.user-pick:hover { border-color: var(--primary); background: var(--primary-soft); }
.user-pick .name { font-weight: 500; }
.user-pick .role { font-size: 11px; color: var(--text-muted); text-transform: uppercase; }
@media (max-width: 900px) {
.shell { grid-template-columns: 1fr; grid-template-areas: "topbar" "main"; }
.sidebar { display: none; }
}