Continued CSS tokenization pass across ambient, fleet, live, simple, integrations pages and their component stylesheets. Replaces hardcoded `white`, `#1a1a2e`, and raw rgba values with semantic tokens from tokens.css. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1093 lines
24 KiB
CSS
1093 lines
24 KiB
CSS
/**
|
|
* Spaxel Dashboard - Simple Mode Styles
|
|
*
|
|
* Card-based mobile-first UI for non-technical users.
|
|
* Progressive disclosure from simple to expert mode.
|
|
*/
|
|
|
|
/* ===== Simple Mode Layout ===== */
|
|
.simple-mode {
|
|
--simple-bg: var(--bg-page);
|
|
--simple-card-bg: var(--bg-card);
|
|
--simple-text-primary: var(--text-primary);
|
|
--simple-text-secondary: var(--text-secondary);
|
|
--simple-accent-blue: var(--blue-9);
|
|
--simple-accent-green: var(--ok);
|
|
--simple-accent-orange: var(--warn);
|
|
--simple-accent-red: var(--alert);
|
|
--simple-border: var(--border-default);
|
|
--simple-shadow: var(--shadow);
|
|
--simple-shadow-hover: var(--shadow-lg);
|
|
}
|
|
|
|
body.simple-mode {
|
|
font-family: var(--font-body);
|
|
background: var(--simple-bg);
|
|
color: var(--simple-text-primary);
|
|
overflow-y: auto;
|
|
}
|
|
|
|
/* Hide expert mode elements in simple mode */
|
|
.simple-mode #status-bar,
|
|
.simple-mode #scene-container,
|
|
.simple-mode #node-panel,
|
|
.simple-mode #chart-panel,
|
|
.simple-mode #presence-panel,
|
|
.simple-mode #room-editor-panel,
|
|
.simple-mode #gdop-legend,
|
|
.simple-mode #timeline-view,
|
|
.simple-mode #mode-toggle-bar,
|
|
.simple-mode .simulator-panel {
|
|
display: none !important;
|
|
}
|
|
|
|
/* ===== Simple Mode Header ===== */
|
|
.simple-mode-header {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 100;
|
|
background: var(--bg-card);
|
|
backdrop-filter: blur(20px);
|
|
-webkit-backdrop-filter: blur(20px);
|
|
border-bottom: 1px solid var(--simple-border);
|
|
padding: 12px 16px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.simple-mode-header h1 {
|
|
font-size: var(--text-lg);
|
|
font-weight: 600;
|
|
margin: 0;
|
|
color: var(--simple-text-primary);
|
|
}
|
|
|
|
.simple-mode-header .mode-toggle {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
background: var(--simple-bg);
|
|
padding: 4px;
|
|
border-radius: var(--radius-card);
|
|
}
|
|
|
|
.simple-mode-header .mode-toggle-btn {
|
|
background: transparent;
|
|
border: none;
|
|
padding: 6px 12px;
|
|
border-radius: var(--radius-control);
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
color: var(--simple-text-secondary);
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.simple-mode-header .mode-toggle-btn.active {
|
|
background: var(--simple-card-bg);
|
|
color: var(--simple-text-primary);
|
|
box-shadow: 0 1px 4px var(--border-subtle);
|
|
}
|
|
|
|
.simple-mode-header .mode-toggle-btn:hover:not(.active) {
|
|
color: var(--simple-text-primary);
|
|
}
|
|
|
|
/* ===== Simple Mode Content ===== */
|
|
.simple-mode-content {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 16px;
|
|
padding-bottom: 100px; /* Space for bottom nav */
|
|
}
|
|
|
|
/* ===== Alert Banner ===== */
|
|
.simple-alert-banner {
|
|
background: linear-gradient(135deg, var(--simple-accent-red), var(--alert));
|
|
color: var(--text-on-accent);
|
|
padding: 16px;
|
|
border-radius: var(--radius-card);
|
|
margin-bottom: 16px;
|
|
box-shadow: var(--simple-shadow);
|
|
display: none;
|
|
animation: slideDown 0.3s ease-out;
|
|
}
|
|
|
|
.simple-alert-banner.visible {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
@keyframes slideDown {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(-10px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.simple-alert-banner .alert-icon {
|
|
font-size: 24px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.simple-alert-banner .alert-content {
|
|
flex: 1;
|
|
}
|
|
|
|
.simple-alert-banner .alert-title {
|
|
font-weight: 600;
|
|
font-size: var(--text-base);
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.simple-alert-banner .alert-message {
|
|
font-size: var(--text-sm);
|
|
opacity: 0.95;
|
|
}
|
|
|
|
.simple-alert-banner .alert-dismiss {
|
|
background: var(--border-strong);
|
|
border: none;
|
|
color: var(--text-on-accent);
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
font-size: 18px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.simple-alert-banner .alert-dismiss:hover {
|
|
background: var(--border-strong);
|
|
}
|
|
|
|
/* ===== Morning Briefing Card ===== */
|
|
.simple-morning-briefing {
|
|
background: linear-gradient(135deg, var(--blue-7), var(--blue-9));
|
|
color: var(--text-on-accent);
|
|
padding: 20px;
|
|
border-radius: var(--radius-modal);
|
|
margin-bottom: 16px;
|
|
box-shadow: var(--simple-shadow);
|
|
animation: fadeIn 0.4s ease-out;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: scale(0.98);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
}
|
|
}
|
|
|
|
.simple-morning-briefing .briefing-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.simple-morning-briefing .briefing-greeting {
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.simple-morning-briefing .briefing-date {
|
|
font-size: 13px;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.simple-morning-briefing .briefing-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.simple-morning-briefing .briefing-section {
|
|
background: var(--border-strong);
|
|
padding: 12px;
|
|
border-radius: var(--radius-card);
|
|
}
|
|
|
|
.simple-morning-briefing .section-label {
|
|
font-size: 11px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 1px;
|
|
opacity: 0.7;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.simple-morning-briefing .section-value {
|
|
font-size: 15px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.simple-morning-briefing .section-metric {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
font-size: var(--text-sm);
|
|
}
|
|
|
|
.simple-morning-briefing .metric-label {
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.simple-morning-briefing .metric-value {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.simple-morning-briefing .briefing-dismiss {
|
|
margin-top: 8px;
|
|
background: var(--border-strong);
|
|
border: none;
|
|
color: var(--text-on-accent);
|
|
padding: 8px 16px;
|
|
border-radius: var(--radius-card);
|
|
font-size: var(--text-sm);
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.simple-morning-briefing .briefing-dismiss:hover {
|
|
background: var(--border-strong);
|
|
}
|
|
|
|
/* ===== Room Cards ===== */
|
|
.simple-room-cards {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
|
gap: 12px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.simple-room-card {
|
|
background: var(--simple-card-bg);
|
|
border-radius: var(--radius-modal);
|
|
padding: 16px;
|
|
box-shadow: var(--simple-shadow);
|
|
transition: all 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
|
|
cursor: pointer;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Pulse animation for occupancy changes */
|
|
@keyframes occupancyPulse {
|
|
0% {
|
|
transform: scale(1);
|
|
box-shadow: 0 2px 8px var(--border-subtle);
|
|
}
|
|
50% {
|
|
transform: scale(1.02);
|
|
box-shadow: 0 4px 20px var(--blue-border);
|
|
}
|
|
100% {
|
|
transform: scale(1);
|
|
box-shadow: 0 2px 8px var(--border-subtle);
|
|
}
|
|
}
|
|
|
|
.simple-room-card.pulse {
|
|
animation: occupancyPulse 0.6s ease-out;
|
|
}
|
|
|
|
.simple-room-card:hover {
|
|
box-shadow: var(--simple-shadow-hover);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.simple-room-card::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 4px;
|
|
background: var(--simple-border);
|
|
transition: background 0.3s;
|
|
}
|
|
|
|
.simple-room-card.occupied::before {
|
|
background: var(--simple-accent-blue);
|
|
}
|
|
|
|
.simple-room-card.empty::before {
|
|
background: var(--simple-accent-green);
|
|
}
|
|
|
|
.simple-room-card.alert::before {
|
|
background: var(--simple-accent-red);
|
|
}
|
|
|
|
.simple-room-card .room-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.simple-room-card .room-name {
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
color: var(--simple-text-primary);
|
|
}
|
|
|
|
.simple-room-card .room-status {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
padding: 4px 10px;
|
|
border-radius: var(--radius-modal);
|
|
}
|
|
|
|
.simple-room-card .room-status.empty {
|
|
background: var(--ok-bg);
|
|
color: var(--simple-accent-green);
|
|
}
|
|
|
|
.simple-room-card .room-status.occupied {
|
|
background: var(--blue-muted);
|
|
color: var(--simple-accent-blue);
|
|
}
|
|
|
|
.simple-room-card .room-status.alert {
|
|
background: var(--alert-bg);
|
|
color: var(--simple-accent-red);
|
|
}
|
|
|
|
.simple-room-card .room-occupants {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.simple-room-card .occupant-avatar {
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: var(--text-sm);
|
|
font-weight: 600;
|
|
color: var(--text-on-accent);
|
|
}
|
|
|
|
.simple-room-card .room-activity {
|
|
font-size: 13px;
|
|
color: var(--simple-text-secondary);
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.simple-room-card .room-timestamp {
|
|
font-size: var(--text-xs);
|
|
color: var(--simple-text-secondary);
|
|
}
|
|
|
|
.simple-room-card .room-expand-hint {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 4px;
|
|
margin-top: 8px;
|
|
font-size: var(--text-xs);
|
|
color: var(--simple-text-secondary);
|
|
}
|
|
|
|
/* ===== Activity Feed ===== */
|
|
.simple-activity-feed {
|
|
background: var(--simple-card-bg);
|
|
border-radius: var(--radius-modal);
|
|
padding: 16px;
|
|
box-shadow: var(--simple-shadow);
|
|
}
|
|
|
|
.simple-activity-feed .feed-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.simple-activity-feed .feed-title {
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
color: var(--simple-text-primary);
|
|
}
|
|
|
|
.simple-activity-feed .feed-filter {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.simple-activity-feed .filter-btn {
|
|
background: var(--simple-bg);
|
|
border: none;
|
|
padding: 6px 12px;
|
|
border-radius: var(--radius-card);
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
color: var(--simple-text-secondary);
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.simple-activity-feed .filter-btn.active {
|
|
background: var(--simple-accent-blue);
|
|
color: var(--text-on-accent);
|
|
}
|
|
|
|
.simple-activity-feed .feed-empty {
|
|
text-align: center;
|
|
padding: 40px 20px;
|
|
color: var(--simple-text-secondary);
|
|
}
|
|
|
|
.simple-activity-feed .feed-empty-icon {
|
|
font-size: 48px;
|
|
margin-bottom: 12px;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.simple-activity-feed .feed-empty-text {
|
|
font-size: 15px;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.simple-activity-feed .feed-empty-subtext {
|
|
font-size: 13px;
|
|
}
|
|
|
|
.simple-activity-feed .activity-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.simple-activity-feed .activity-item {
|
|
display: flex;
|
|
gap: 12px;
|
|
padding: 12px;
|
|
background: var(--simple-bg);
|
|
border-radius: var(--radius-card);
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.simple-activity-feed .activity-item:hover {
|
|
background: var(--border-default);
|
|
}
|
|
|
|
.simple-activity-feed .activity-icon {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: var(--radius-card);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: var(--text-lg);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.simple-activity-feed .activity-icon.presence {
|
|
background: var(--blue-muted);
|
|
}
|
|
|
|
.simple-activity-feed .activity-icon.alert {
|
|
background: var(--alert-bg);
|
|
}
|
|
|
|
.simple-activity-feed .activity-icon.system {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.simple-activity-feed .activity-icon.sleep {
|
|
background: var(--blue-muted);
|
|
}
|
|
|
|
.simple-activity-feed .activity-content {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.simple-activity-feed .activity-title {
|
|
font-size: var(--text-sm);
|
|
font-weight: 500;
|
|
color: var(--simple-text-primary);
|
|
margin-bottom: 2px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.simple-activity-feed .activity-description {
|
|
font-size: 13px;
|
|
color: var(--simple-text-secondary);
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.simple-activity-feed .activity-time {
|
|
font-size: var(--text-xs);
|
|
color: var(--simple-text-secondary);
|
|
}
|
|
|
|
.simple-activity-feed .activity-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.simple-activity-feed .activity-action-btn {
|
|
background: transparent;
|
|
border: 1px solid var(--simple-border);
|
|
padding: 4px 10px;
|
|
border-radius: var(--radius-control);
|
|
font-size: var(--text-xs);
|
|
color: var(--simple-text-secondary);
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.simple-activity-feed .activity-action-btn:hover {
|
|
background: var(--simple-bg);
|
|
color: var(--simple-text-primary);
|
|
}
|
|
|
|
/* ===== Quick Actions ===== */
|
|
.simple-quick-actions {
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
background: var(--bg-card);
|
|
backdrop-filter: blur(20px);
|
|
-webkit-backdrop-filter: blur(20px);
|
|
border-top: 1px solid var(--simple-border);
|
|
padding: 12px 16px;
|
|
padding-bottom: max(12px, env(safe-area-inset-bottom));
|
|
z-index: 100;
|
|
}
|
|
|
|
.simple-quick-actions .actions-container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
display: flex;
|
|
justify-content: space-around;
|
|
gap: 8px;
|
|
}
|
|
|
|
.simple-quick-actions .quick-action-btn {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 4px;
|
|
background: transparent;
|
|
border: none;
|
|
padding: 8px 12px;
|
|
border-radius: var(--radius-card);
|
|
cursor: pointer;
|
|
transition: background 0.2s;
|
|
min-width: 60px;
|
|
}
|
|
|
|
.simple-quick-actions .quick-action-btn:hover {
|
|
background: var(--simple-bg);
|
|
}
|
|
|
|
.simple-quick-actions .quick-action-btn.active {
|
|
background: var(--blue-muted);
|
|
}
|
|
|
|
.simple-quick-actions .action-icon {
|
|
font-size: 24px;
|
|
}
|
|
|
|
.simple-quick-actions .action-label {
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
color: var(--simple-text-secondary);
|
|
text-align: center;
|
|
}
|
|
|
|
.simple-quick-actions .action-badge {
|
|
position: absolute;
|
|
top: 4px;
|
|
right: 4px;
|
|
background: var(--simple-accent-red);
|
|
color: var(--text-on-accent);
|
|
font-size: 10px;
|
|
font-weight: 600;
|
|
padding: 2px 6px;
|
|
border-radius: var(--radius-card);
|
|
min-width: 16px;
|
|
text-align: center;
|
|
}
|
|
|
|
/* ===== Sleep Summary Card ===== */
|
|
.simple-sleep-summary {
|
|
background: linear-gradient(135deg, var(--blue-10), var(--blue-8));
|
|
color: var(--text-on-accent);
|
|
padding: 20px;
|
|
border-radius: var(--radius-modal);
|
|
margin-bottom: 16px;
|
|
box-shadow: var(--simple-shadow);
|
|
}
|
|
|
|
.simple-sleep-summary .sleep-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.simple-sleep-summary .sleep-title {
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.simple-sleep-summary .sleep-date {
|
|
font-size: 13px;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.simple-sleep-summary .sleep-metrics {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 12px;
|
|
}
|
|
|
|
.simple-sleep-summary .sleep-metric {
|
|
background: var(--border-strong);
|
|
padding: 12px;
|
|
border-radius: var(--radius-card);
|
|
}
|
|
|
|
.simple-sleep-summary .metric-label {
|
|
font-size: 11px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 1px;
|
|
opacity: 0.7;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.simple-sleep-summary .metric-value {
|
|
font-size: var(--text-lg);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.simple-sleep-summary .metric-unit {
|
|
font-size: 13px;
|
|
opacity: 0.8;
|
|
margin-left: 2px;
|
|
}
|
|
|
|
.simple-sleep-summary .sleep-quality {
|
|
grid-column: 1 / -1;
|
|
background: var(--border-strong);
|
|
padding: 12px;
|
|
border-radius: var(--radius-card);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.simple-sleep-summary .quality-label {
|
|
font-size: var(--text-sm);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.simple-sleep-summary .quality-value {
|
|
font-size: var(--text-base);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.simple-sleep-summary .sleep-details-btn {
|
|
margin-top: 12px;
|
|
background: var(--border-strong);
|
|
border: none;
|
|
color: var(--text-on-accent);
|
|
padding: 10px 16px;
|
|
border-radius: var(--radius-card);
|
|
font-size: var(--text-sm);
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
width: 100%;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.simple-sleep-summary .sleep-details-btn:hover {
|
|
background: var(--border-strong);
|
|
}
|
|
|
|
/* ===== Room Detail Modal ===== */
|
|
.simple-room-modal {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: var(--overlay);
|
|
z-index: 200;
|
|
display: none;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 16px;
|
|
animation: fadeIn 0.2s ease-out;
|
|
}
|
|
|
|
.simple-room-modal.visible {
|
|
display: flex;
|
|
}
|
|
|
|
.simple-room-modal .modal-content {
|
|
background: var(--simple-card-bg);
|
|
border-radius: var(--radius-modal);
|
|
max-width: 500px;
|
|
width: 100%;
|
|
max-height: 80vh;
|
|
overflow-y: auto;
|
|
box-shadow: var(--shadow-xl);
|
|
animation: slideUp 0.3s ease-out;
|
|
}
|
|
|
|
@keyframes slideUp {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(20px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.simple-room-modal .modal-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 20px 20px 16px;
|
|
border-bottom: 1px solid var(--simple-border);
|
|
}
|
|
|
|
.simple-room-modal .modal-title {
|
|
font-size: var(--text-lg);
|
|
font-weight: 600;
|
|
color: var(--simple-text-primary);
|
|
}
|
|
|
|
.simple-room-modal .modal-close {
|
|
background: var(--simple-bg);
|
|
border: none;
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
font-size: var(--text-lg);
|
|
color: var(--simple-text-secondary);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.simple-room-modal .modal-close:hover {
|
|
background: var(--border-default);
|
|
}
|
|
|
|
.simple-room-modal .modal-body {
|
|
padding: 20px;
|
|
}
|
|
|
|
.simple-room-modal .room-stats {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 12px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.simple-room-modal .room-stat {
|
|
background: var(--simple-bg);
|
|
padding: 12px;
|
|
border-radius: var(--radius-card);
|
|
text-align: center;
|
|
}
|
|
|
|
.simple-room-modal .stat-label {
|
|
font-size: var(--text-xs);
|
|
color: var(--simple-text-secondary);
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.simple-room-modal .stat-value {
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
color: var(--simple-text-primary);
|
|
}
|
|
|
|
.simple-room-modal .room-history {
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.simple-room-modal .history-title {
|
|
font-size: var(--text-base);
|
|
font-weight: 600;
|
|
margin-bottom: 12px;
|
|
color: var(--simple-text-primary);
|
|
}
|
|
|
|
.simple-room-modal .history-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.simple-room-modal .history-item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 10px 12px;
|
|
background: var(--simple-bg);
|
|
border-radius: var(--radius-card);
|
|
font-size: var(--text-sm);
|
|
}
|
|
|
|
.simple-room-modal .history-time {
|
|
color: var(--simple-text-secondary);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.simple-room-modal .history-event {
|
|
font-weight: 500;
|
|
color: var(--simple-text-primary);
|
|
}
|
|
|
|
/* ===== Security Mode Toggle ===== */
|
|
.simple-security-toggle {
|
|
background: var(--simple-card-bg);
|
|
border-radius: var(--radius-modal);
|
|
padding: 16px;
|
|
box-shadow: var(--simple-shadow);
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.simple-security-toggle .security-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.simple-security-toggle .security-title {
|
|
font-size: var(--text-base);
|
|
font-weight: 600;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.simple-security-toggle .security-description {
|
|
font-size: var(--text-sm);
|
|
color: var(--simple-text-secondary);
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.simple-security-toggle .security-toggle-btn {
|
|
width: 100%;
|
|
padding: 14px;
|
|
border-radius: var(--radius-card);
|
|
font-size: var(--text-base);
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
border: none;
|
|
}
|
|
|
|
.simple-security-toggle .security-toggle-btn.disarmed {
|
|
background: var(--simple-accent-green);
|
|
color: var(--text-on-accent);
|
|
}
|
|
|
|
.simple-security-toggle .security-toggle-btn.armed {
|
|
background: var(--simple-accent-red);
|
|
color: var(--text-on-accent);
|
|
}
|
|
|
|
.simple-security-toggle .security-status {
|
|
text-align: center;
|
|
font-size: 13px;
|
|
color: var(--simple-text-secondary);
|
|
margin-top: 8px;
|
|
}
|
|
|
|
/* ===== Loading State ===== */
|
|
.simple-loading {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 60px 20px;
|
|
color: var(--simple-text-secondary);
|
|
}
|
|
|
|
.simple-loading-spinner {
|
|
width: 40px;
|
|
height: 40px;
|
|
border: 3px solid var(--simple-border);
|
|
border-top-color: var(--simple-accent-blue);
|
|
border-radius: 50%;
|
|
animation: spin 0.8s linear infinite;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
.simple-loading-text {
|
|
font-size: 15px;
|
|
}
|
|
|
|
/* ===== Responsive Design ===== */
|
|
@media (min-width: 768px) {
|
|
.simple-mode-content {
|
|
padding: 24px;
|
|
}
|
|
|
|
.simple-room-cards {
|
|
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
|
|
gap: 16px;
|
|
}
|
|
|
|
.simple-quick-actions {
|
|
padding: 16px 24px;
|
|
}
|
|
|
|
.simple-quick-actions .quick-action-btn {
|
|
min-width: 80px;
|
|
padding: 12px 16px;
|
|
}
|
|
|
|
.simple-quick-actions .action-icon {
|
|
font-size: var(--text-2xl);
|
|
}
|
|
|
|
.simple-quick-actions .action-label {
|
|
font-size: var(--text-xs);
|
|
}
|
|
}
|
|
|
|
@media (min-width: 1024px) {
|
|
.simple-mode-content {
|
|
display: grid;
|
|
grid-template-columns: 2fr 1fr;
|
|
gap: 24px;
|
|
align-items: start;
|
|
}
|
|
|
|
.simple-mode-content > *:not(.simple-morning-briefing):not(.simple-alert-banner) {
|
|
grid-column: 1;
|
|
}
|
|
|
|
.simple-mode-content > .simple-activity-feed {
|
|
grid-column: 2;
|
|
grid-row: 1 / -1;
|
|
position: sticky;
|
|
top: 80px;
|
|
}
|
|
|
|
.simple-morning-briefing,
|
|
.simple-alert-banner {
|
|
grid-column: 1 / -1;
|
|
}
|
|
}
|
|
|
|
/* ===== OLED Night Mode (True Black) ===== */
|
|
body.simple-mode.night-mode.oled-night {
|
|
--simple-bg: var(--slate-1);
|
|
--simple-card-bg: var(--slate-1);
|
|
--simple-text-primary: var(--text-on-accent);
|
|
--simple-text-secondary: var(--text-secondary);
|
|
--simple-border: var(--bg-page);
|
|
--simple-shadow: var(--shadow-xl);
|
|
--simple-shadow-hover: 0 4px 16px var(--overlay-strong);
|
|
}
|
|
|
|
body.simple-mode.night-mode.oled-night .simple-mode-header {
|
|
background: var(--bg-card);
|
|
}
|
|
|
|
body.simple-mode.night-mode.oled-night .simple-quick-actions {
|
|
background: var(--bg-card);
|
|
}
|
|
|
|
body.simple-mode.night-mode.oled-night .simple-room-card {
|
|
background: var(--slate-1);
|
|
}
|
|
|
|
body.simple-mode.night-mode.oled-night .simple-activity-feed,
|
|
body.simple-mode.night-mode.oled-night .simple-security-toggle {
|
|
background: var(--slate-1);
|
|
}
|
|
|
|
/* Zone color accents remain vibrant in night mode */
|
|
body.simple-mode.night-mode.oled-night .simple-room-card::before {
|
|
/* Zone color accents use original colors, not dimmed */
|
|
}
|
|
|
|
/* Optimize text rendering for OLED */
|
|
body.simple-mode.night-mode.oled-night {
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|
|
/* ===== Accessibility ===== */
|
|
.simple-mode *:focus-visible {
|
|
outline: 2px solid var(--simple-accent-blue);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.simple-mode button:focus-visible,
|
|
.simple-mode a:focus-visible {
|
|
outline: 2px solid var(--simple-accent-blue);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
/* Reduce motion for users who prefer it */
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.simple-mode * {
|
|
animation-duration: 0.01ms !important;
|
|
animation-iteration-count: 1 !important;
|
|
transition-duration: 0.01ms !important;
|
|
}
|
|
}
|
|
|
|
/* High contrast mode support */
|
|
@media (prefers-contrast: high) {
|
|
body.simple-mode {
|
|
--simple-border: var(--slate-1);
|
|
}
|
|
|
|
.simple-room-card,
|
|
.simple-activity-feed,
|
|
.simple-security-toggle {
|
|
border: 2px solid var(--simple-border);
|
|
}
|
|
}
|