Update: 2026-07-13 22:23:21
This commit is contained in:
@@ -0,0 +1,168 @@
|
||||
/* ============================================================
|
||||
مواصلاتي — لوحة المؤسسة: نظام تصميم
|
||||
هوية هادئة وواثقة لأداة تشغيلية يومية (ليست صفحة تسويقية)
|
||||
============================================================ */
|
||||
|
||||
:root {
|
||||
--bg: #F4F6F9;
|
||||
--surface: #FFFFFF;
|
||||
--surface-2: #EAEEF3;
|
||||
--ink: #101826;
|
||||
--ink-soft: #4A5568;
|
||||
--ink-faint: #8896A6;
|
||||
--line: #E1E6ED;
|
||||
--line-strong: #C9D1DD;
|
||||
|
||||
--brand: #0E7C86; /* أزرق-تيل الميناء — هوية اللوحة الخاصة، مختلفة عن سيرو الأساسي */
|
||||
--brand-deep: #0A5F67;
|
||||
--brand-soft: #E1F2F3;
|
||||
|
||||
--good: #1F9D6B;
|
||||
--good-soft: #E3F6EC;
|
||||
--warn: #C9821D;
|
||||
--warn-soft: #FBF0DD;
|
||||
--bad: #C6473D;
|
||||
--bad-soft: #FAE6E3;
|
||||
--info: #4A6FA5;
|
||||
--info-soft: #E7EDF7;
|
||||
|
||||
--shadow-sm: 0 1px 2px rgba(16,24,38,.05);
|
||||
--shadow-md: 0 4px 16px rgba(16,24,38,.08);
|
||||
--shadow-lg: 0 12px 32px rgba(16,24,38,.14);
|
||||
--r-sm: 8px;
|
||||
--r-md: 12px;
|
||||
--r-lg: 16px;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
--bg: #0C1118;
|
||||
--surface: #141B25;
|
||||
--surface-2: #1B2430;
|
||||
--ink: #EAF0F6;
|
||||
--ink-soft: #9DAAB9;
|
||||
--ink-faint: #64707F;
|
||||
--line: #253140;
|
||||
--line-strong: #334154;
|
||||
|
||||
--brand: #29B6C2;
|
||||
--brand-deep: #1D8E97;
|
||||
--brand-soft: #102A2C;
|
||||
|
||||
--good: #3FC489;
|
||||
--good-soft: #10281F;
|
||||
--warn: #E3A53D;
|
||||
--warn-soft: #2E2410;
|
||||
--bad: #E5695D;
|
||||
--bad-soft: #2E1714;
|
||||
--info: #7C9CCF;
|
||||
--info-soft: #16202F;
|
||||
|
||||
--shadow-sm: 0 1px 2px rgba(0,0,0,.3);
|
||||
--shadow-md: 0 6px 20px rgba(0,0,0,.35);
|
||||
--shadow-lg: 0 16px 40px rgba(0,0,0,.5);
|
||||
}
|
||||
}
|
||||
|
||||
:root[data-theme="light"] {
|
||||
--bg: #F4F6F9; --surface: #FFFFFF; --surface-2: #EAEEF3; --ink: #101826;
|
||||
--ink-soft: #4A5568; --ink-faint: #8896A6; --line: #E1E6ED; --line-strong: #C9D1DD;
|
||||
--brand: #0E7C86; --brand-deep: #0A5F67; --brand-soft: #E1F2F3;
|
||||
--good: #1F9D6B; --good-soft: #E3F6EC; --warn: #C9821D; --warn-soft: #FBF0DD;
|
||||
--bad: #C6473D; --bad-soft: #FAE6E3; --info: #4A6FA5; --info-soft: #E7EDF7;
|
||||
}
|
||||
:root[data-theme="dark"] {
|
||||
--bg: #0C1118; --surface: #141B25; --surface-2: #1B2430; --ink: #EAF0F6;
|
||||
--ink-soft: #9DAAB9; --ink-faint: #64707F; --line: #253140; --line-strong: #334154;
|
||||
--brand: #29B6C2; --brand-deep: #1D8E97; --brand-soft: #102A2C;
|
||||
--good: #3FC489; --good-soft: #10281F; --warn: #E3A53D; --warn-soft: #2E2410;
|
||||
--bad: #E5695D; --bad-soft: #2E1714; --info: #7C9CCF; --info-soft: #16202F;
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
html, body, #app { height: 100%; }
|
||||
body {
|
||||
margin: 0;
|
||||
background: var(--bg);
|
||||
color: var(--ink);
|
||||
font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
|
||||
direction: rtl;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
.num { font-family: "IBM Plex Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
|
||||
|
||||
a { color: inherit; }
|
||||
button { font-family: inherit; }
|
||||
|
||||
h1, h2, h3, h4 { margin: 0; text-wrap: balance; font-weight: 700; }
|
||||
|
||||
/* ─── Buttons ──────────────────────────────────────────── */
|
||||
.btn {
|
||||
display: inline-flex; align-items: center; justify-content: center; gap: 8px;
|
||||
font-family: inherit; font-size: 14px; font-weight: 600;
|
||||
padding: 10px 18px; border-radius: var(--r-sm); border: 1px solid transparent;
|
||||
cursor: pointer; transition: background .15s ease, border-color .15s ease, opacity .15s ease;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.btn:disabled { opacity: .5; cursor: not-allowed; }
|
||||
.btn-primary { background: var(--brand); color: white; }
|
||||
.btn-primary:hover:not(:disabled) { background: var(--brand-deep); }
|
||||
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
|
||||
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); }
|
||||
.btn-danger { background: var(--bad); color: white; }
|
||||
.btn-danger:hover:not(:disabled) { opacity: .88; }
|
||||
.btn-sm { padding: 6px 12px; font-size: 13px; }
|
||||
|
||||
/* ─── Form controls ────────────────────────────────────── */
|
||||
.field { display: flex; flex-direction: column; gap: 6px; }
|
||||
.field label { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
|
||||
.input, select.input, textarea.input {
|
||||
font-family: inherit; font-size: 14.5px; color: var(--ink);
|
||||
background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
|
||||
padding: 10px 12px; outline: none; transition: border-color .15s ease;
|
||||
}
|
||||
.input:focus { border-color: var(--brand); }
|
||||
.input::placeholder { color: var(--ink-faint); }
|
||||
|
||||
/* ─── Cards / surfaces ─────────────────────────────────── */
|
||||
.card {
|
||||
background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
.card-pad { padding: 20px; }
|
||||
|
||||
/* ─── Pills / badges ───────────────────────────────────── */
|
||||
.pill {
|
||||
display: inline-flex; align-items: center; gap: 6px;
|
||||
font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 100px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.pill-good { color: var(--good); background: var(--good-soft); }
|
||||
.pill-warn { color: var(--warn); background: var(--warn-soft); }
|
||||
.pill-bad { color: var(--bad); background: var(--bad-soft); }
|
||||
.pill-info { color: var(--info); background: var(--info-soft); }
|
||||
.pill-neutral { color: var(--ink-soft); background: var(--surface-2); }
|
||||
|
||||
/* ─── Tables ────────────────────────────────────────────── */
|
||||
.table-wrap { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--line); }
|
||||
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--surface); }
|
||||
table.tbl th {
|
||||
text-align: right; font-size: 12px; font-weight: 700; color: var(--ink-faint);
|
||||
text-transform: uppercase; letter-spacing: .04em; padding: 12px 16px;
|
||||
background: var(--surface-2); border-bottom: 1px solid var(--line);
|
||||
}
|
||||
table.tbl td { padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--ink); }
|
||||
table.tbl tr:last-child td { border-bottom: none; }
|
||||
table.tbl tbody tr:hover { background: var(--surface-2); }
|
||||
|
||||
/* ─── Scrollbar (subtle) ───────────────────────────────── */
|
||||
::-webkit-scrollbar { width: 10px; height: 10px; }
|
||||
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 100px; }
|
||||
::-webkit-scrollbar-track { background: transparent; }
|
||||
|
||||
/* ─── Focus visibility ─────────────────────────────────── */
|
||||
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
* { transition: none !important; animation: none !important; }
|
||||
}
|
||||
Reference in New Issue
Block a user