1193 lines
23 KiB
CSS
1193 lines
23 KiB
CSS
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");
|
|
|
|
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
|
html { -webkit-text-size-adjust: 100%; tab-size: 4; }
|
|
body { line-height: 1.5; -webkit-font-smoothing: antialiased; }
|
|
img, svg, video { display: block; max-width: 100%; }
|
|
input, button, textarea, select { font: inherit; }
|
|
|
|
:root {
|
|
--bg: #0d1117;
|
|
--bg-card: #161b22;
|
|
--bg-hover: #1c2128;
|
|
--border: #30363d;
|
|
--border-focus: #388bfd;
|
|
--text-primary: #e6edf3;
|
|
--text-secondary: #8b949e;
|
|
--text-muted: #484f58;
|
|
--accent: #388bfd;
|
|
--accent-hover: #58a6ff;
|
|
--accent-dim: rgba(56, 139, 253, 0.12);
|
|
--success: #3fb950;
|
|
--success-dim: rgba(63, 185, 80, 0.12);
|
|
--warning: #d29922;
|
|
--warning-dim: rgba(210, 153, 34, 0.12);
|
|
--danger: #f85149;
|
|
--danger-hover: #ff7b72;
|
|
--danger-dim: rgba(248, 81, 73, 0.12);
|
|
--radius: 8px;
|
|
--radius-lg: 12px;
|
|
--shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.24);
|
|
--shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.5);
|
|
}
|
|
|
|
|
|
|
|
|
|
html,
|
|
body {
|
|
height: 100%;
|
|
background: var(--bg);
|
|
color: var(--text-primary);
|
|
font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
font-size: 14px;
|
|
line-height: 1.5;
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
a {
|
|
color: var(--accent-hover);
|
|
text-decoration: none;
|
|
}
|
|
|
|
/* Scrollbar */
|
|
::-webkit-scrollbar {
|
|
width: 6px;
|
|
height: 6px;
|
|
}
|
|
::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
::-webkit-scrollbar-thumb {
|
|
background: var(--border);
|
|
border-radius: 3px;
|
|
}
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: var(--text-muted);
|
|
}
|
|
|
|
/* ── Card ── */
|
|
.card {
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-lg);
|
|
padding: 24px;
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
/* ── Button ── */
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 7px 14px;
|
|
border-radius: var(--radius);
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
border: 1px solid transparent;
|
|
transition: all 0.15s ease;
|
|
white-space: nowrap;
|
|
font-family: inherit;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: var(--accent);
|
|
color: #fff;
|
|
border-color: var(--accent);
|
|
}
|
|
.btn-primary:hover {
|
|
background: var(--accent-hover);
|
|
border-color: var(--accent-hover);
|
|
}
|
|
|
|
.btn-ghost {
|
|
background: transparent;
|
|
color: var(--text-secondary);
|
|
border-color: var(--border);
|
|
}
|
|
.btn-ghost:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.btn-danger {
|
|
background: var(--danger-dim);
|
|
color: var(--danger);
|
|
border-color: var(--danger);
|
|
}
|
|
.btn-danger:hover {
|
|
background: var(--danger);
|
|
color: #fff;
|
|
}
|
|
|
|
.btn-success {
|
|
background: var(--success-dim);
|
|
color: var(--success);
|
|
border-color: var(--success);
|
|
}
|
|
.btn-success:hover {
|
|
background: var(--success);
|
|
color: #fff;
|
|
}
|
|
|
|
.btn-sm {
|
|
padding: 4px 10px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.btn:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* ── Input ── */
|
|
.input {
|
|
width: 100%;
|
|
background: var(--bg);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 8px 12px;
|
|
color: var(--text-primary);
|
|
font-size: 13px;
|
|
font-family: inherit;
|
|
outline: none;
|
|
transition: border-color 0.15s ease, box-shadow 0.15s ease;
|
|
}
|
|
|
|
.input:focus {
|
|
border-color: var(--border-focus);
|
|
box-shadow: 0 0 0 3px var(--accent-dim);
|
|
}
|
|
|
|
.input::placeholder {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
select.input {
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* ── Label ── */
|
|
.label {
|
|
display: block;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
color: var(--text-secondary);
|
|
margin-bottom: 6px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
/* ── Form group ── */
|
|
.form-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
|
|
.form-row {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 12px;
|
|
}
|
|
|
|
@media (max-width: 600px) {
|
|
.form-row {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
/* ── Table ── */
|
|
.table-wrap {
|
|
overflow-x: auto;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-lg);
|
|
}
|
|
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
thead {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
th {
|
|
padding: 10px 16px;
|
|
text-align: left;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
color: var(--text-secondary);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
border-bottom: 1px solid var(--border);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
td {
|
|
padding: 12px 16px;
|
|
font-size: 13px;
|
|
color: var(--text-primary);
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
tr:last-child td {
|
|
border-bottom: none;
|
|
}
|
|
|
|
tr:hover td {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
/* ── Badge ── */
|
|
.badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 2px 8px;
|
|
border-radius: 20px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.badge-green {
|
|
background: var(--success-dim);
|
|
color: var(--success);
|
|
}
|
|
|
|
.badge-red {
|
|
background: var(--danger-dim);
|
|
color: var(--danger);
|
|
}
|
|
|
|
.badge-yellow {
|
|
background: var(--warning-dim);
|
|
color: var(--warning);
|
|
}
|
|
|
|
.badge-blue {
|
|
background: var(--accent-dim);
|
|
color: var(--accent-hover);
|
|
}
|
|
|
|
/* ── Stat Card ── */
|
|
.stat-card {
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-lg);
|
|
padding: 20px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
transition: border-color 0.15s ease;
|
|
}
|
|
|
|
.stat-card:hover {
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.stat-label {
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
color: var(--text-secondary);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
.stat-value {
|
|
font-size: 28px;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
line-height: 1;
|
|
}
|
|
|
|
.stat-icon {
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: var(--radius);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
/* ── Sidebar ── */
|
|
.sidebar {
|
|
width: 240px;
|
|
min-height: 100vh;
|
|
background: var(--bg-card);
|
|
border-right: 1px solid var(--border);
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.sidebar-logo {
|
|
padding: 20px 24px;
|
|
border-bottom: 1px solid var(--border);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.sidebar-logo-icon {
|
|
width: 32px;
|
|
height: 32px;
|
|
background: linear-gradient(135deg, var(--accent), #7c3aed);
|
|
border-radius: 8px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.sidebar-logo-text {
|
|
font-size: 15px;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.sidebar-logo-sub {
|
|
font-size: 11px;
|
|
color: var(--text-secondary);
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.sidebar-nav {
|
|
flex: 1;
|
|
padding: 12px 12px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
|
|
.sidebar-section {
|
|
padding: 8px 12px 4px;
|
|
font-size: 10px;
|
|
font-weight: 700;
|
|
color: var(--text-muted);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.nav-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 8px 12px;
|
|
border-radius: var(--radius);
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
transition: all 0.15s ease;
|
|
border: none;
|
|
background: none;
|
|
width: 100%;
|
|
text-align: left;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.nav-item:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.nav-item.active {
|
|
background: var(--accent-dim);
|
|
color: var(--accent-hover);
|
|
}
|
|
|
|
.sidebar-footer {
|
|
padding: 16px;
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
|
|
.user-info {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.user-avatar {
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 50%;
|
|
background: linear-gradient(135deg, var(--accent), #7c3aed);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
color: #fff;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.user-name {
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.user-role {
|
|
font-size: 11px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
/* ── Main Layout ── */
|
|
.app-layout {
|
|
display: flex;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.main-content {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* When mail layout is inside main-content, let it fill */
|
|
.main-content > .mail-layout {
|
|
flex: 1;
|
|
}
|
|
|
|
.page-header {
|
|
padding: 24px 32px;
|
|
border-bottom: 1px solid var(--border);
|
|
background: var(--bg-card);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
}
|
|
|
|
.page-title {
|
|
font-size: 20px;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.page-subtitle {
|
|
font-size: 13px;
|
|
color: var(--text-secondary);
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.page-body {
|
|
padding: 32px;
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 24px;
|
|
}
|
|
|
|
/* ── Stats Grid ── */
|
|
.stats-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
gap: 16px;
|
|
}
|
|
|
|
/* ── Modal ── */
|
|
.modal-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(0, 0, 0, 0.7);
|
|
backdrop-filter: blur(4px);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 100;
|
|
padding: 16px;
|
|
animation: fadeIn 0.15s ease;
|
|
}
|
|
|
|
.modal {
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-lg);
|
|
width: 100%;
|
|
max-width: 480px;
|
|
box-shadow: var(--shadow-lg);
|
|
animation: slideUp 0.2s ease;
|
|
}
|
|
|
|
.modal-header {
|
|
padding: 20px 24px 16px;
|
|
border-bottom: 1px solid var(--border);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.modal-title {
|
|
font-size: 16px;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.modal-close {
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
padding: 4px;
|
|
border-radius: 4px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: color 0.15s ease;
|
|
}
|
|
|
|
.modal-close:hover {
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.modal-body {
|
|
padding: 24px;
|
|
}
|
|
|
|
.modal-footer {
|
|
padding: 16px 24px;
|
|
border-top: 1px solid var(--border);
|
|
display: flex;
|
|
gap: 10px;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
/* ── Login ── */
|
|
.login-page {
|
|
min-height: 100vh;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: var(--bg);
|
|
background-image: radial-gradient(ellipse at 50% 0%, rgba(56, 139, 253, 0.08) 0%, transparent 60%);
|
|
padding: 16px;
|
|
}
|
|
|
|
.login-box {
|
|
width: 100%;
|
|
max-width: 400px;
|
|
}
|
|
|
|
.login-header {
|
|
text-align: center;
|
|
margin-bottom: 32px;
|
|
}
|
|
|
|
.login-logo {
|
|
width: 52px;
|
|
height: 52px;
|
|
background: linear-gradient(135deg, var(--accent), #7c3aed);
|
|
border-radius: 14px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin: 0 auto 16px;
|
|
box-shadow: 0 8px 24px rgba(56, 139, 253, 0.3);
|
|
}
|
|
|
|
.login-title {
|
|
font-size: 22px;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.login-sub {
|
|
font-size: 13px;
|
|
color: var(--text-secondary);
|
|
margin-top: 6px;
|
|
}
|
|
|
|
.error-msg {
|
|
background: var(--danger-dim);
|
|
border: 1px solid var(--danger);
|
|
border-radius: var(--radius);
|
|
padding: 10px 14px;
|
|
color: var(--danger);
|
|
font-size: 13px;
|
|
}
|
|
|
|
/* ── Search ── */
|
|
.search-bar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.search-input-wrap {
|
|
position: relative;
|
|
flex: 1;
|
|
}
|
|
|
|
.search-icon {
|
|
position: absolute;
|
|
left: 10px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
color: var(--text-muted);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.search-input {
|
|
padding-left: 34px;
|
|
}
|
|
|
|
/* ── Empty state ── */
|
|
.empty-state {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 60px 20px;
|
|
gap: 12px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.empty-icon {
|
|
width: 48px;
|
|
height: 48px;
|
|
background: var(--bg-hover);
|
|
border-radius: 12px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* ── Progress bar ── */
|
|
.progress-bar {
|
|
height: 4px;
|
|
background: var(--border);
|
|
border-radius: 2px;
|
|
overflow: hidden;
|
|
flex: 1;
|
|
}
|
|
|
|
.progress-fill {
|
|
height: 100%;
|
|
background: var(--accent);
|
|
border-radius: 2px;
|
|
transition: width 0.3s ease;
|
|
}
|
|
|
|
.progress-fill.danger {
|
|
background: var(--danger);
|
|
}
|
|
|
|
/* ── Animations ── */
|
|
@keyframes fadeIn {
|
|
from { opacity: 0; }
|
|
to { opacity: 1; }
|
|
}
|
|
|
|
@keyframes slideUp {
|
|
from { opacity: 0; transform: translateY(12px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
|
|
@keyframes spin {
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
.spinner {
|
|
width: 16px;
|
|
height: 16px;
|
|
border: 2px solid transparent;
|
|
border-top-color: currentColor;
|
|
border-radius: 50%;
|
|
animation: spin 0.6s linear infinite;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* ══════════════════════════════════════════════════════════
|
|
MAIL CLIENT — Gmail-style 3-column
|
|
══════════════════════════════════════════════════════════ */
|
|
|
|
.mail-layout {
|
|
display: grid;
|
|
grid-template-columns: 220px 360px 1fr;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* ── Left: Folder Sidebar ── */
|
|
.mail-sidebar {
|
|
background: var(--bg);
|
|
border-right: 1px solid var(--border);
|
|
padding: 16px 10px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow-y: auto;
|
|
gap: 6px;
|
|
}
|
|
.mail-sidebar .btn-primary {
|
|
border-radius: 20px;
|
|
padding: 10px 16px;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
gap: 6px;
|
|
box-shadow: 0 2px 8px rgba(88, 166, 255, 0.25);
|
|
}
|
|
|
|
.mail-account {
|
|
margin-top: auto;
|
|
padding: 12px 8px;
|
|
border-top: 1px solid var(--border);
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
.mail-account-email {
|
|
font-size: 11px;
|
|
color: var(--text-muted);
|
|
max-width: 100%;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* Folders */
|
|
.folder-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
margin-top: 4px;
|
|
}
|
|
.folder-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 9px 12px;
|
|
border-radius: 20px;
|
|
border: none;
|
|
background: none;
|
|
cursor: pointer;
|
|
font-size: 13px;
|
|
color: var(--text-secondary);
|
|
text-align: left;
|
|
width: 100%;
|
|
transition: all 0.15s ease;
|
|
font-family: inherit;
|
|
}
|
|
.folder-item:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
}
|
|
.folder-item.active {
|
|
background: var(--accent-dim);
|
|
color: var(--accent-hover);
|
|
font-weight: 600;
|
|
}
|
|
.folder-icon { font-size: 15px; flex-shrink: 0; width: 20px; text-align: center; }
|
|
.folder-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.folder-badge {
|
|
font-size: 10px;
|
|
font-weight: 700;
|
|
min-width: 20px;
|
|
height: 20px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 10px;
|
|
background: var(--accent);
|
|
color: #fff;
|
|
padding: 0 6px;
|
|
letter-spacing: 0.02em;
|
|
}
|
|
|
|
/* ── Center: Message List ── */
|
|
.mail-list {
|
|
border-right: 1px solid var(--border);
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
background: var(--bg);
|
|
}
|
|
.mail-list-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 14px 20px;
|
|
border-bottom: 1px solid var(--border);
|
|
background: var(--bg-card);
|
|
}
|
|
.mail-list-header h2 {
|
|
font-size: 15px;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
margin: 0;
|
|
}
|
|
.message-list-inner {
|
|
overflow-y: auto;
|
|
flex: 1;
|
|
}
|
|
.message-row {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 12px;
|
|
padding: 14px 20px;
|
|
cursor: pointer;
|
|
border-bottom: 1px solid rgba(48, 54, 61, 0.5);
|
|
transition: all 0.12s ease;
|
|
position: relative;
|
|
}
|
|
.message-row:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
.message-row.selected {
|
|
background: var(--accent-dim);
|
|
border-left: 3px solid var(--accent);
|
|
padding-left: 17px;
|
|
}
|
|
.message-row.unread::before {
|
|
content: "";
|
|
position: absolute;
|
|
left: 8px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
width: 6px;
|
|
height: 6px;
|
|
border-radius: 50%;
|
|
background: var(--accent);
|
|
}
|
|
.message-row.unread { padding-left: 22px; }
|
|
.message-row.unread.selected { padding-left: 19px; }
|
|
.message-row.unread .message-sender { font-weight: 700; color: var(--text-primary); }
|
|
.message-row.unread .message-subject { color: var(--text-secondary); font-weight: 500; }
|
|
.message-avatar {
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 50%;
|
|
background: linear-gradient(135deg, var(--accent-dim), var(--bg-hover));
|
|
color: var(--accent-hover);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
flex-shrink: 0;
|
|
margin-top: 2px;
|
|
}
|
|
.message-content { flex: 1; min-width: 0; }
|
|
.message-top {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 3px;
|
|
gap: 8px;
|
|
}
|
|
.message-sender {
|
|
font-size: 13px;
|
|
color: var(--text-secondary);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
flex: 1;
|
|
}
|
|
.message-time {
|
|
font-size: 11px;
|
|
color: var(--text-muted);
|
|
flex-shrink: 0;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
.message-subject {
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
line-height: 1.5;
|
|
}
|
|
.message-attach {
|
|
font-size: 13px;
|
|
flex-shrink: 0;
|
|
opacity: 0.6;
|
|
margin-top: 2px;
|
|
}
|
|
|
|
/* ── Right: Message Detail ── */
|
|
.mail-detail {
|
|
overflow-y: auto;
|
|
background: var(--bg-card);
|
|
}
|
|
.message-view {
|
|
padding: 28px 32px;
|
|
max-width: 900px;
|
|
}
|
|
.message-view-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
margin-bottom: 24px;
|
|
gap: 20px;
|
|
}
|
|
.message-view-subject {
|
|
font-size: 20px;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
line-height: 1.35;
|
|
letter-spacing: -0.01em;
|
|
}
|
|
.message-view-actions { display: flex; gap: 8px; flex-shrink: 0; }
|
|
.message-view-meta {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 14px;
|
|
padding: 16px 0;
|
|
border-bottom: 1px solid var(--border);
|
|
margin-bottom: 20px;
|
|
}
|
|
.message-view-avatar {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
background: linear-gradient(135deg, var(--accent-dim), var(--bg-hover));
|
|
color: var(--accent-hover);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 16px;
|
|
font-weight: 700;
|
|
flex-shrink: 0;
|
|
}
|
|
.message-attachments {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
margin-bottom: 20px;
|
|
padding: 12px 0;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
.attachment-chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 7px 12px;
|
|
border-radius: 8px;
|
|
background: var(--bg-hover);
|
|
border: 1px solid var(--border);
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
transition: border-color 0.12s;
|
|
cursor: pointer;
|
|
}
|
|
.attachment-chip:hover { border-color: var(--accent); color: var(--text-primary); }
|
|
.message-view-body {
|
|
min-height: 200px;
|
|
padding-top: 4px;
|
|
}
|
|
|
|
/* ── Empty state for mail ── */
|
|
.mail-empty {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 100%;
|
|
color: var(--text-muted);
|
|
gap: 12px;
|
|
padding: 40px;
|
|
}
|
|
.mail-empty-icon {
|
|
width: 64px;
|
|
height: 64px;
|
|
border-radius: 50%;
|
|
background: var(--bg-hover);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
/* ── Attachment buttons ── */
|
|
.attachment-actions {
|
|
display: inline-flex;
|
|
gap: 4px;
|
|
margin-left: auto;
|
|
}
|
|
.att-btn {
|
|
background: none;
|
|
border: 1px solid transparent;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 12px;
|
|
padding: 2px 5px;
|
|
transition: all 0.12s;
|
|
color: var(--text-muted);
|
|
}
|
|
.att-btn:hover {
|
|
border-color: var(--accent);
|
|
color: var(--accent-hover);
|
|
background: var(--accent-dim);
|
|
}
|
|
|
|
/* ── Compose dropzone ── */
|
|
.compose-dropzone {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
padding: 16px;
|
|
border: 2px dashed var(--border);
|
|
border-radius: var(--radius);
|
|
cursor: pointer;
|
|
color: var(--text-muted);
|
|
font-size: 12px;
|
|
transition: all 0.15s;
|
|
}
|
|
.compose-dropzone:hover {
|
|
border-color: var(--text-secondary);
|
|
color: var(--text-secondary);
|
|
background: var(--bg-hover);
|
|
}
|
|
.compose-dropzone.active {
|
|
border-color: var(--accent);
|
|
color: var(--accent-hover);
|
|
background: var(--accent-dim);
|
|
}
|
|
|
|
.compose-attachments {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
.compose-att-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 6px 10px;
|
|
background: var(--bg-hover);
|
|
border-radius: var(--radius);
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
}
|
|
.att-remove {
|
|
margin-left: auto;
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
color: var(--text-muted);
|
|
font-size: 12px;
|
|
padding: 2px 6px;
|
|
border-radius: 4px;
|
|
transition: all 0.12s;
|
|
}
|
|
.att-remove:hover {
|
|
color: var(--danger);
|
|
background: var(--danger-dim);
|
|
}
|
|
|
|
/* ── Mobile Header ── */
|
|
.mobile-header {
|
|
display: none;
|
|
align-items: center;
|
|
gap: 16px;
|
|
padding: 12px 16px;
|
|
background: var(--bg-card);
|
|
border-bottom: 1px solid var(--border);
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 50;
|
|
}
|
|
|
|
.mobile-menu-btn {
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-primary);
|
|
cursor: pointer;
|
|
padding: 4px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.mobile-logo {
|
|
font-weight: 700;
|
|
font-size: 16px;
|
|
color: var(--accent-hover);
|
|
}
|
|
|
|
.sidebar-overlay {
|
|
display: none;
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
backdrop-filter: blur(4px);
|
|
z-index: 90;
|
|
animation: fadeIn 0.2s ease;
|
|
}
|
|
|
|
/* ── Responsive ── */
|
|
@media (max-width: 1024px) {
|
|
.mail-layout { grid-template-columns: 60px 280px 1fr; }
|
|
.mail-sidebar { padding: 12px 6px; }
|
|
.mail-sidebar .btn-primary { font-size: 0; padding: 10px; justify-content: center; }
|
|
.folder-name { display: none; }
|
|
.folder-badge { display: none; }
|
|
.folder-item { justify-content: center; padding: 8px; border-radius: 12px; }
|
|
.mail-account-email { display: none; }
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.mobile-header { display: flex; }
|
|
|
|
.sidebar {
|
|
position: fixed;
|
|
left: -240px;
|
|
top: 0;
|
|
bottom: 0;
|
|
z-index: 100;
|
|
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
box-shadow: 10px 0 30px rgba(0,0,0,0.5);
|
|
}
|
|
|
|
.sidebar-open .sidebar {
|
|
transform: translateX(240px);
|
|
}
|
|
|
|
.sidebar-open .sidebar-overlay {
|
|
display: block;
|
|
}
|
|
|
|
.mail-layout { grid-template-columns: 1fr; height: auto; overflow: visible; }
|
|
.mail-sidebar { display: none; }
|
|
.mail-detail { display: none; }
|
|
|
|
/* Show active mail view if selected */
|
|
.mail-view-active .mail-list { display: none; }
|
|
.mail-view-active .mail-detail { display: block; }
|
|
|
|
.page-body { padding: 16px; }
|
|
.page-header {
|
|
padding: 16px;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
}
|
|
.page-header .btn { width: 100%; justify-content: center; }
|
|
|
|
.stats-grid { grid-template-columns: 1fr 1fr; }
|
|
}
|
|
/* ── Language Switcher ── */
|
|
.lang-switcher .btn-ghost {
|
|
border-radius: var(--radius) !important;
|
|
font-weight: 400 !important;
|
|
}
|
|
|
|
.lang-option:hover {
|
|
background: var(--bg-hover) !important;
|
|
color: var(--text-primary) !important;
|
|
}
|
|
|
|
.lang-option.active {
|
|
color: var(--accent-hover) !important;
|
|
font-weight: 600;
|
|
}
|