mirror of
https://github.com/andrey271192/vps_monitoring.git
synced 2026-09-20 11:55:34 +00:00
Card-level onclick fired even when KeenDNS was clicked. Use delegated handlers so the edit form toggles reliably and card clicks skip buttons. Co-authored-by: Cursor <cursoragent@cursor.com>
879 lines
17 KiB
CSS
879 lines
17 KiB
CSS
/* Dark Theme (default) */
|
|
:root, [data-theme="dark"] {
|
|
--bg-primary: #0f0f23;
|
|
--bg-secondary: #1a1a3e;
|
|
--bg-card: #1e1e4a;
|
|
--text-primary: #e8e8ff;
|
|
--text-secondary: #a0a0cc;
|
|
--accent: #6366f1;
|
|
--accent-hover: #818cf8;
|
|
--success: #22c55e;
|
|
--success-bg: rgba(34, 197, 94, 0.12);
|
|
--danger: #ef4444;
|
|
--danger-bg: rgba(239, 68, 68, 0.12);
|
|
--warning: #f59e0b;
|
|
--warning-bg: rgba(245, 158, 11, 0.12);
|
|
--border: rgba(255, 255, 255, 0.08);
|
|
--radius: 12px;
|
|
--shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
|
|
--input-bg: #0f0f23;
|
|
}
|
|
|
|
/* Light Theme */
|
|
[data-theme="light"] {
|
|
--bg-primary: #f8fafc;
|
|
--bg-secondary: #ffffff;
|
|
--bg-card: #ffffff;
|
|
--text-primary: #1e293b;
|
|
--text-secondary: #64748b;
|
|
--accent: #4f46e5;
|
|
--accent-hover: #6366f1;
|
|
--success: #16a34a;
|
|
--success-bg: rgba(22, 163, 74, 0.1);
|
|
--danger: #dc2626;
|
|
--danger-bg: rgba(220, 38, 38, 0.1);
|
|
--warning: #d97706;
|
|
--warning-bg: rgba(217, 119, 6, 0.1);
|
|
--border: rgba(0, 0, 0, 0.08);
|
|
--shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
|
|
--input-bg: #f1f5f9;
|
|
}
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
|
|
background: var(--bg-primary);
|
|
color: var(--text-primary);
|
|
min-height: 100vh;
|
|
transition: background 0.3s, color 0.3s;
|
|
}
|
|
|
|
/* Login Page */
|
|
.login-page {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.login-container {
|
|
width: 100%;
|
|
max-width: 400px;
|
|
padding: 20px;
|
|
}
|
|
|
|
.login-card {
|
|
background: var(--bg-card);
|
|
border-radius: var(--radius);
|
|
padding: 40px 32px;
|
|
box-shadow: var(--shadow);
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.login-header {
|
|
text-align: center;
|
|
margin-bottom: 32px;
|
|
}
|
|
|
|
.login-header h1 {
|
|
font-size: 28px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.login-header p {
|
|
color: var(--text-secondary);
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* Forms */
|
|
.form-group {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.form-group label {
|
|
display: block;
|
|
font-size: 13px;
|
|
color: var(--text-secondary);
|
|
margin-bottom: 6px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.form-group input, .form-group select, .form-group textarea {
|
|
width: 100%;
|
|
padding: 10px 14px;
|
|
background: var(--input-bg);
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
color: var(--text-primary);
|
|
font-size: 14px;
|
|
transition: border-color 0.2s;
|
|
}
|
|
|
|
.form-group input:focus {
|
|
outline: none;
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.btn-primary {
|
|
width: 100%;
|
|
padding: 12px;
|
|
background: var(--accent);
|
|
color: white;
|
|
border: none;
|
|
border-radius: 8px;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background: var(--accent-hover);
|
|
}
|
|
|
|
.error-msg {
|
|
margin-top: 12px;
|
|
padding: 10px;
|
|
background: var(--danger-bg);
|
|
border: 1px solid rgba(239, 68, 68, 0.3);
|
|
border-radius: 8px;
|
|
color: var(--danger);
|
|
font-size: 13px;
|
|
text-align: center;
|
|
}
|
|
|
|
/* Header */
|
|
header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 16px 24px;
|
|
background: var(--bg-secondary);
|
|
border-bottom: 1px solid var(--border);
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 100;
|
|
}
|
|
|
|
.header-left h1 {
|
|
font-size: 20px;
|
|
}
|
|
|
|
.header-right {
|
|
display: flex;
|
|
gap: 8px;
|
|
align-items: center;
|
|
}
|
|
|
|
.btn-icon {
|
|
width: 36px;
|
|
height: 36px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
font-size: 16px;
|
|
transition: background 0.2s;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.btn-icon:hover {
|
|
background: var(--accent);
|
|
color: white;
|
|
}
|
|
|
|
.lang-btn {
|
|
padding: 4px 10px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
border-radius: 6px;
|
|
border: 1px solid var(--border);
|
|
background: var(--bg-card);
|
|
color: var(--text-primary);
|
|
cursor: pointer;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.lang-btn:hover {
|
|
background: var(--accent);
|
|
color: white;
|
|
}
|
|
|
|
/* Main Content */
|
|
main {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 24px;
|
|
}
|
|
|
|
/* Stats Bar */
|
|
.stats-bar {
|
|
display: flex;
|
|
gap: 12px;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.stat-item {
|
|
flex: 1;
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 16px;
|
|
text-align: center;
|
|
transition: transform 0.2s;
|
|
}
|
|
|
|
.stat-item:hover {
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.stat-item .stat-label {
|
|
display: block;
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.stat-item .stat-value {
|
|
display: block;
|
|
font-size: 28px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.stat-item.online .stat-value { color: var(--success); }
|
|
.stat-item.offline .stat-value { color: var(--danger); }
|
|
|
|
/* Toolbar */
|
|
.toolbar {
|
|
margin-bottom: 20px;
|
|
display: flex;
|
|
gap: 12px;
|
|
align-items: center;
|
|
}
|
|
|
|
.toolbar .btn-primary {
|
|
width: auto;
|
|
padding: 10px 20px;
|
|
}
|
|
|
|
.toolbar .btn-secondary {
|
|
padding: 10px 20px;
|
|
background: var(--bg-card);
|
|
color: var(--text-primary);
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
cursor: pointer;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.toolbar .btn-secondary:hover {
|
|
background: var(--accent);
|
|
color: white;
|
|
}
|
|
|
|
/* Server Grid */
|
|
.servers-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
|
|
gap: 16px;
|
|
}
|
|
|
|
.server-card {
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 20px;
|
|
transition: transform 0.2s, box-shadow 0.2s;
|
|
cursor: pointer;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.server-card::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 3px;
|
|
}
|
|
|
|
.server-card.online::before {
|
|
background: var(--success);
|
|
}
|
|
|
|
.server-card.offline::before {
|
|
background: var(--danger);
|
|
}
|
|
|
|
.server-card:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 8px 32px rgba(99, 102, 241, 0.1);
|
|
}
|
|
|
|
.server-card-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
.server-card-header .name {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.server-card-header .host {
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.status-badge {
|
|
padding: 4px 10px;
|
|
border-radius: 20px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.status-badge.online {
|
|
background: var(--success-bg);
|
|
color: var(--success);
|
|
}
|
|
|
|
.status-badge.offline {
|
|
background: var(--danger-bg);
|
|
color: var(--danger);
|
|
}
|
|
|
|
.status-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
display: inline-block;
|
|
}
|
|
|
|
.status-dot.online {
|
|
background: var(--success);
|
|
box-shadow: 0 0 8px var(--success);
|
|
animation: pulse-green 2s infinite;
|
|
}
|
|
|
|
.status-dot.offline {
|
|
background: var(--danger);
|
|
box-shadow: 0 0 8px var(--danger);
|
|
animation: pulse-red 2s infinite;
|
|
}
|
|
|
|
@keyframes pulse-green {
|
|
0%, 100% { box-shadow: 0 0 4px var(--success); }
|
|
50% { box-shadow: 0 0 12px var(--success); }
|
|
}
|
|
|
|
@keyframes pulse-red {
|
|
0%, 100% { box-shadow: 0 0 4px var(--danger); }
|
|
50% { box-shadow: 0 0 12px var(--danger); }
|
|
}
|
|
|
|
.metrics-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 10px;
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
.metric-item {
|
|
text-align: center;
|
|
}
|
|
|
|
.metric-item .label {
|
|
font-size: 11px;
|
|
color: var(--text-secondary);
|
|
display: block;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.metric-item .value {
|
|
font-size: 18px;
|
|
font-weight: 700;
|
|
color: var(--success);
|
|
}
|
|
|
|
.metric-item .value.warn { color: var(--warning); }
|
|
.metric-item .value.crit { color: var(--danger); }
|
|
|
|
.progress-bar {
|
|
width: 100%;
|
|
height: 4px;
|
|
background: var(--bg-primary);
|
|
border-radius: 2px;
|
|
margin-top: 4px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.progress-bar .fill {
|
|
height: 100%;
|
|
border-radius: 2px;
|
|
transition: width 0.3s;
|
|
}
|
|
|
|
.progress-bar .fill.ok { background: var(--success); }
|
|
.progress-bar .fill.warn { background: var(--warning); }
|
|
.progress-bar .fill.crit { background: var(--danger); }
|
|
|
|
.keenetic-url-edit {
|
|
margin-top: 10px;
|
|
padding: 12px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
background: color-mix(in srgb, var(--accent) 8%, var(--card-bg));
|
|
}
|
|
|
|
.keenetic-url-edit.is-open {
|
|
border-color: var(--accent);
|
|
box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);
|
|
}
|
|
|
|
.keenetic-url-edit-title {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
margin-bottom: 8px;
|
|
color: var(--accent);
|
|
}
|
|
|
|
.keenetic-url-edit .form-group input {
|
|
font-size: 13px;
|
|
width: 100%;
|
|
}
|
|
|
|
.server-card-actions .keenetic-url-btn.active {
|
|
border-color: var(--accent);
|
|
color: var(--accent);
|
|
}
|
|
|
|
.keenetic-card-open {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.server-card-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
margin-top: 14px;
|
|
flex-wrap: wrap;
|
|
padding-top: 14px;
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
|
|
.server-card-actions button {
|
|
flex: 1;
|
|
padding: 8px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 6px;
|
|
background: var(--bg-primary);
|
|
color: var(--text-primary);
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.server-card-actions button:hover {
|
|
background: var(--accent);
|
|
border-color: var(--accent);
|
|
color: white;
|
|
}
|
|
|
|
.server-card-actions button.danger:hover {
|
|
background: var(--danger);
|
|
border-color: var(--danger);
|
|
}
|
|
|
|
/* Modals */
|
|
.modal {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(0, 0, 0, 0.7);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 1000;
|
|
backdrop-filter: blur(4px);
|
|
}
|
|
|
|
.modal-content {
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 24px;
|
|
width: 90%;
|
|
max-width: 500px;
|
|
max-height: 90vh;
|
|
overflow-y: auto;
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.modal-content.modal-large {
|
|
max-width: 900px;
|
|
height: 80vh;
|
|
}
|
|
|
|
.modal-content.modal-wide {
|
|
max-width: 700px;
|
|
}
|
|
|
|
.modal-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.modal-header h2 {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.btn-close {
|
|
width: 32px;
|
|
height: 32px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: none;
|
|
border: 1px solid var(--border);
|
|
border-radius: 6px;
|
|
color: var(--text-primary);
|
|
font-size: 20px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.btn-close:hover {
|
|
background: var(--danger);
|
|
color: white;
|
|
}
|
|
|
|
.modal-content h3 {
|
|
font-size: 14px;
|
|
color: var(--text-secondary);
|
|
margin: 20px 0 12px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
/* Instructions */
|
|
.instructions-section {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.instr-card {
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
padding: 16px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.instr-card h4 {
|
|
font-size: 14px;
|
|
margin-bottom: 8px;
|
|
color: var(--accent);
|
|
}
|
|
|
|
.instr-card p {
|
|
font-size: 13px;
|
|
color: var(--text-secondary);
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.instr-card code {
|
|
display: block;
|
|
margin-top: 8px;
|
|
padding: 8px 12px;
|
|
background: var(--bg-primary);
|
|
border-radius: 6px;
|
|
font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
|
|
font-size: 12px;
|
|
color: var(--success);
|
|
overflow-x: auto;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.instr-card .cmd-list {
|
|
list-style: none;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.instr-card .cmd-list li {
|
|
padding: 6px 12px;
|
|
background: var(--bg-primary);
|
|
border-radius: 4px;
|
|
margin-bottom: 4px;
|
|
font-family: monospace;
|
|
font-size: 12px;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* Terminal */
|
|
#terminal-container {
|
|
width: 100%;
|
|
height: calc(100% - 60px);
|
|
background: #000;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Tabs */
|
|
.tabs {
|
|
display: flex;
|
|
gap: 4px;
|
|
margin-bottom: 20px;
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border);
|
|
border-radius: 10px;
|
|
padding: 4px;
|
|
}
|
|
|
|
.tab {
|
|
flex: 1;
|
|
padding: 10px 16px;
|
|
border: none;
|
|
border-radius: 8px;
|
|
background: transparent;
|
|
color: var(--text-secondary);
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.tab:hover {
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.tab.active {
|
|
background: var(--accent);
|
|
color: white;
|
|
}
|
|
|
|
/* HA Summary */
|
|
.ha-summary {
|
|
font-size: 12px;
|
|
line-height: 1.6;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.ha-stat {
|
|
padding: 2px 0;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
/* Notification Matrix */
|
|
.notify-channels {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
|
gap: 12px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.notify-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.notify-table th,
|
|
.notify-table td {
|
|
padding: 10px 12px;
|
|
text-align: center;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.notify-table th {
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.notify-table td:first-child,
|
|
.notify-table th:first-child {
|
|
text-align: left;
|
|
}
|
|
|
|
.notify-table input[type="checkbox"] {
|
|
width: 18px;
|
|
height: 18px;
|
|
cursor: pointer;
|
|
accent-color: var(--accent);
|
|
}
|
|
|
|
/* Small button */
|
|
.btn-sm {
|
|
padding: 6px 14px;
|
|
font-size: 12px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 6px;
|
|
background: var(--bg-primary);
|
|
color: var(--text-primary);
|
|
cursor: pointer;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.btn-sm:hover {
|
|
background: var(--accent);
|
|
color: white;
|
|
}
|
|
|
|
/* Footer */
|
|
.app-footer {
|
|
text-align: center;
|
|
padding: 24px 16px 16px;
|
|
font-size: 13px;
|
|
color: var(--text-secondary);
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.app-footer a {
|
|
color: var(--text-secondary);
|
|
text-decoration: none;
|
|
transition: color 0.2s;
|
|
}
|
|
|
|
.app-footer a:hover {
|
|
color: var(--accent);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* Loading state */
|
|
.server-card.loading {
|
|
opacity: 0.5;
|
|
pointer-events: none;
|
|
position: relative;
|
|
}
|
|
.server-card.loading::after {
|
|
content: "⏳";
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
font-size: 32px;
|
|
animation: pulse 1s infinite;
|
|
}
|
|
@keyframes pulse {
|
|
0%, 100% { opacity: 1; }
|
|
50% { opacity: 0.3; }
|
|
}
|
|
|
|
/* Card bottom buttons */
|
|
.card-buttons {
|
|
display: flex;
|
|
gap: 6px;
|
|
padding: 8px 0 0;
|
|
margin-top: 8px;
|
|
border-top: 1px solid rgba(255,255,255,0.06);
|
|
flex-wrap: wrap;
|
|
}
|
|
.btn-card {
|
|
flex: 1;
|
|
padding: 6px 10px;
|
|
border: 1px solid rgba(255,255,255,0.1);
|
|
background: rgba(255,255,255,0.04);
|
|
color: var(--text);
|
|
border-radius: 6px;
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
transition: all 0.15s;
|
|
white-space: nowrap;
|
|
min-width: 0;
|
|
}
|
|
.btn-card:hover { background: rgba(255,255,255,0.1); }
|
|
.btn-card.btn-warn {
|
|
border-color: rgba(251,191,36,0.3);
|
|
color: #fbbf24;
|
|
}
|
|
.btn-card.btn-warn:hover { background: rgba(251,191,36,0.15); }
|
|
.btn-card.btn-danger-sm {
|
|
flex: 0;
|
|
border-color: rgba(239,68,68,0.3);
|
|
color: #ef4444;
|
|
padding: 6px 10px;
|
|
}
|
|
.btn-card.btn-danger-sm:hover { background: rgba(239,68,68,0.15); }
|
|
|
|
/* VPN badges */
|
|
.badge-vpn-up {
|
|
display: inline-block;
|
|
background: rgba(34,197,94,0.15);
|
|
color: #22c55e;
|
|
padding: 2px 8px;
|
|
border-radius: 4px;
|
|
font-size: 11px;
|
|
border: 1px solid rgba(34,197,94,0.3);
|
|
}
|
|
.badge-vpn-down {
|
|
display: inline-block;
|
|
background: rgba(239,68,68,0.15);
|
|
color: #ef4444;
|
|
padding: 2px 8px;
|
|
border-radius: 4px;
|
|
font-size: 11px;
|
|
border: 1px solid rgba(239,68,68,0.3);
|
|
}
|
|
|
|
/* Mute bell icon */
|
|
.mute-bell {
|
|
position: absolute;
|
|
top: 10px;
|
|
right: 10px;
|
|
width: 30px;
|
|
height: 30px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 50%;
|
|
border: 1px solid transparent;
|
|
background: rgba(255,255,255,0.04);
|
|
cursor: pointer;
|
|
font-size: 15px;
|
|
opacity: 0.35;
|
|
transition: all 0.2s;
|
|
z-index: 5;
|
|
padding: 0;
|
|
line-height: 1;
|
|
}
|
|
.mute-bell:hover {
|
|
opacity: 1;
|
|
background: rgba(255,255,255,0.1);
|
|
border-color: rgba(255,255,255,0.15);
|
|
}
|
|
.mute-bell.muted {
|
|
opacity: 1;
|
|
background: rgba(239,68,68,0.15);
|
|
border-color: rgba(239,68,68,0.4);
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 768px) {
|
|
main { padding: 16px; }
|
|
.servers-grid { grid-template-columns: 1fr; }
|
|
.stats-bar { flex-direction: column; gap: 8px; }
|
|
header { padding: 12px 16px; }
|
|
.header-right { gap: 4px; }
|
|
.tabs { flex-wrap: wrap; }
|
|
.tab { flex: 0 1 auto; padding: 8px 12px; font-size: 12px; }
|
|
.notify-channels { grid-template-columns: 1fr; }
|
|
}
|