/* SLEAP-RTC Dashboard Styles - Modern UI */

:root {
    /* Dark theme base (default) */
    --bg-primary: #0a0a0b;
    --bg-secondary: #111113;
    --bg-tertiary: #18181b;
    --bg-elevated: #1f1f23;
    --bg-hover: #27272a;

    /* Purple accent palette */
    --accent-primary: #8b5cf6;
    --accent-secondary: #a78bfa;
    --accent-muted: rgba(139, 92, 246, 0.15);
    --accent-subtle: rgba(139, 92, 246, 0.08);
    --accent-glow: rgba(139, 92, 246, 0.25);

    /* Status colors */
    --status-success: #22c55e;
    --status-warning: #eab308;
    --status-error: #ef4444;
    --status-info: #3b82f6;

    /* Text colors */
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    /* Borders */
    --border-subtle: #1e1e21;
    --border-default: #27272a;

    /* Spacing */
    --sidebar-width: 220px;
    --radius: 8px;
}

/* Light theme */
[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --bg-elevated: #e2e8f0;
    --bg-hover: #cbd5e1;

    --accent-primary: #7c3aed;
    --accent-secondary: #6d28d9;
    --accent-muted: rgba(124, 58, 237, 0.15);
    --accent-subtle: rgba(124, 58, 237, 0.08);
    --accent-glow: rgba(124, 58, 237, 0.25);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;

    --border-subtle: #e2e8f0;
    --border-default: #cbd5e1;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
}

/* Subtle grid background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(var(--border-subtle) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    opacity: 0.5;
    z-index: 0;
}

[data-theme="light"] body::before {
    opacity: 0.3;
}

/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: contain;
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--accent-primary);
}

/* Navigation */
.nav-section {
    padding: 16px 12px;
    flex: 1;
}

.nav-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    padding: 8px 12px;
    margin-bottom: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    margin-bottom: 2px;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--accent-muted);
    color: var(--accent-primary);
}

.nav-item svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

.nav-badge {
    margin-left: auto;
    background: var(--bg-elevated);
    color: var(--text-muted);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.nav-item.active .nav-badge {
    background: var(--accent-primary);
    color: white;
}

/* Main content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

/* Top bar */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 32px;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-secondary);
    position: sticky;
    top: 0;
    z-index: 50;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-menu-btn {
    display: none !important;
}

.page-title {
    font-size: 18px;
    font-weight: 600;
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* User dropdown */
.user-dropdown {
    position: relative;
}

.user-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
    border: 1px solid transparent;
}

.user-trigger:hover {
    background: var(--bg-hover);
    border-color: var(--border-default);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-default);
}

.user-info {
    text-align: right;
}

.user-name {
    font-size: 13px;
    font-weight: 500;
}

.user-email {
    font-size: 11px;
    color: var(--text-muted);
}

.user-chevron {
    color: var(--text-muted);
}

.user-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: 8px;
    min-width: 180px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    display: none;
    overflow: hidden;
}

.user-menu.open {
    display: block;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
}

.user-menu-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.user-menu-item.danger {
    color: var(--status-error);
}

.user-menu-item.danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

.user-menu-item svg {
    width: 16px;
    height: 16px;
}

.user-menu-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 4px 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    border: none;
}

.btn svg {
    width: 16px;
    height: 16px;
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-secondary);
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-default);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--text-muted);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--status-error);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
}

.btn-sm {
    padding: 6px 10px;
    font-size: 12px;
}

.btn-sm svg {
    width: 14px;
    height: 14px;
}

.btn-large {
    padding: 14px 28px;
    font-size: 1rem;
}

.github-icon {
    width: 20px;
    height: 20px;
}

/* Content area */
.content-area {
    padding: 24px 32px;
}

/* Tab content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Section header */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
}

.section-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Search */
.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    width: 240px;
    transition: all 0.15s;
}

.search-box:focus-within {
    border-color: var(--accent-primary);
    background: var(--bg-elevated);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box svg {
    color: var(--text-muted);
    width: 16px;
    height: 16px;
}

/* Filter dropdowns */
.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-select {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius);
    color: var(--text-secondary);
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

.filter-select:hover {
    border-color: var(--accent-primary);
    background-color: var(--bg-elevated);
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.checkbox-filter {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    padding: 6px 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius);
    transition: all 0.15s;
}

.checkbox-filter:hover {
    border-color: var(--accent-primary);
    background-color: var(--bg-elevated);
}

.checkbox-filter input[type="checkbox"] {
    accent-color: var(--accent-primary);
    width: 14px;
    height: 14px;
    cursor: pointer;
}

/* Custom checkbox styling for better dark/light mode visibility */
.checkbox-filter input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    border-radius: 3px;
    position: relative;
}

.checkbox-filter input[type="checkbox"]:checked {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.checkbox-filter input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-filter input[type="checkbox"]:hover {
    border-color: var(--accent-primary);
}

.checkbox-filter input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--accent-glow);
}

/* Token/Room card list */
.card-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Token cards */
.token-card, .room-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.15s;
}

.token-card:hover, .room-card:hover {
    border-color: var(--border-default);
}

.token-card.inactive {
    opacity: 0.7;
    border-color: var(--border-subtle);
}

.token-card.inactive:hover {
    opacity: 0.85;
}

/* Token section headers */
.tokens-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    margin-bottom: 8px;
}

.tokens-section-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0;
}

.tokens-section-header.inactive-section {
    background: var(--bg-tertiary);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-top: 24px;
    cursor: pointer;
    transition: background 0.15s;
}

.tokens-section-header.inactive-section:hover {
    background: var(--bg-elevated);
}

.tokens-section-header .section-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tokens-section-header .section-toggle svg {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.inactive-tokens-list {
    margin-top: 8px;
}

/* Room section headers */
.rooms-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    margin-bottom: 8px;
}

.rooms-section-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0;
}

.rooms-section-header.inactive-section {
    background: var(--bg-tertiary);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-top: 24px;
    cursor: pointer;
    transition: background 0.15s;
}

.rooms-section-header.inactive-section:hover {
    background: var(--bg-elevated);
}

.rooms-section-header .section-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rooms-section-header .section-toggle svg {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.expired-rooms-list {
    margin-top: 8px;
}

/* Create item button row */
.create-item-row {
    padding: 16px 0;
    margin-top: 8px;
    border-top: 1px dashed var(--border-subtle);
    text-align: center;
}

.btn-create-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
}

/* Spacing for expired/inactive card lists */
.expired-rooms-list .room-card,
.inactive-tokens-list .token-card {
    margin-bottom: 12px;
}

.expired-rooms-list .room-card:last-child,
.inactive-tokens-list .token-card:last-child {
    margin-bottom: 0;
}

.token-header, .room-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
}

.token-main, .room-main {
    display: flex;
    align-items: center;
    gap: 14px;
}

.token-icon, .room-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
}

.token-icon svg, .room-icon svg {
    width: 20px;
    height: 20px;
}

.token-info h3, .room-info h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-edit-inline {
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--text-muted);
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.btn-edit-inline:hover {
    background: var(--bg-hover);
    color: var(--accent-primary);
}

.btn-edit-inline svg {
    width: 14px;
    height: 14px;
}

.token-meta, .room-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
}

.token-meta-item, .room-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.token-meta-item svg, .room-meta-item svg {
    width: 14px;
    height: 14px;
}

.room-meta-item.warning, .token-meta-item.warning {
    color: var(--status-warning);
}

.room-meta-item.error, .token-meta-item.error {
    color: var(--status-error);
}

.room-card.expiring-soon {
    border-color: rgba(234, 179, 8, 0.3);
}

.room-card.expired {
    opacity: 0.6;
    border-color: rgba(239, 68, 68, 0.3);
}

.token-actions, .room-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Worker count badge */
.worker-count-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--status-success);
}

.worker-count-badge svg {
    width: 14px;
    height: 14px;
}

.worker-count-badge.offline {
    background: rgba(113, 113, 122, 0.1);
    color: var(--text-muted);
}

/* API key available section */
.api-key-available {
    border-top: 1px solid var(--border-subtle);
    background: rgba(234, 179, 8, 0.08);
    padding: 16px 20px;
}

.api-key-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--status-warning);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.api-key-header svg {
    width: 16px;
    height: 16px;
}

.api-key-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.api-key-content .worker-command {
    display: block;
    background: var(--bg-primary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius);
    padding: 12px 14px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--text-primary);
    word-break: break-all;
    white-space: pre-wrap;
}

.api-key-actions {
    display: flex;
    gap: 8px;
}

.token-card.has-key {
    border-color: rgba(234, 179, 8, 0.3);
}

/* Nested workers */
.nested-workers {
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-tertiary);
}

.nested-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
}

.nested-header:hover {
    background: var(--bg-hover);
}

.nested-header svg {
    width: 16px;
    height: 16px;
    transition: transform 0.15s;
}

.nested-header.expanded svg {
    transform: rotate(180deg);
}

.nested-worker-list {
    display: none;
}

.nested-worker-list.expanded {
    display: block;
}

.nested-worker-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-top: 1px solid var(--border-subtle);
}

.nested-worker-row:hover {
    background: var(--bg-hover);
}

.worker-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.worker-avatar {
    width: 32px;
    height: 32px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
}

.worker-avatar svg {
    width: 16px;
    height: 16px;
}

.worker-name {
    font-weight: 500;
    font-size: 13px;
}

.worker-id {
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.worker-connected {
    color: var(--text-muted);
    font-size: 12px;
}

/* Role badges */
.role-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.role-badge.owner {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-primary);
}

.role-badge.member {
    background: rgba(59, 130, 246, 0.15);
    color: var(--status-info);
}

/* Status badges */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-success {
    background: rgba(34, 197, 94, 0.2);
    color: var(--status-success);
}

.badge-warning {
    background: rgba(234, 179, 8, 0.2);
    color: var(--status-warning);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.2);
    color: var(--status-error);
}

.badge-worker-active {
    background: rgba(34, 197, 94, 0.2);
    color: var(--status-success);
}

.badge-worker-none {
    background: rgba(100, 116, 139, 0.2);
    color: var(--text-muted);
}

.badge-expiring {
    background: rgba(234, 179, 8, 0.2);
    color: var(--status-warning);
    animation: pulse-warning 2s ease-in-out infinite;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 500;
    vertical-align: middle;
    margin-left: 8px;
}

.badge-expiring svg,
.badge-expired svg {
    width: 12px;
    height: 12px;
}

.badge-expired {
    background: rgba(239, 68, 68, 0.2);
    color: var(--status-error);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 500;
    vertical-align: middle;
    margin-left: 8px;
}

@keyframes pulse-warning {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Relative Time */
.relative-time {
    cursor: help;
    border-bottom: 1px dotted var(--text-muted);
    transition: color 0.2s, border-color 0.2s;
}

.relative-time:hover {
    color: var(--text-secondary);
    border-color: var(--text-secondary);
}

/* Hidden */
.hidden {
    display: none !important;
}

/* Login Card */
.login-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.login-card {
    max-width: 400px;
    padding: 40px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    text-align: center;
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.login-logo-img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
}

.login-logo-text {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.login-logo-text span {
    color: var(--accent-primary);
}

.login-card h2 {
    margin-bottom: 12px;
}

.login-card p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: 16px;
    padding: 32px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content.modal-large {
    max-width: 600px;
}

.modal-content.modal-confirm {
    max-width: 400px;
    text-align: center;
}

.modal-confirm .confirm-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--danger);
}

.modal-confirm .confirm-icon i {
    width: 24px;
    height: 24px;
}

.modal-confirm h3 {
    margin-bottom: 8px;
}

.modal-confirm p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

.modal-confirm .form-actions {
    justify-content: center;
}

.modal-content h3 {
    margin-bottom: 24px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label,
.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.15s;
}

.form-group input:focus,
.form-group select:focus,
.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input::placeholder,
.form-input::placeholder {
    color: var(--text-muted);
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

/* Success Details */
.success-details {
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-row label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    min-width: 100px;
}

.detail-row code {
    flex: 1;
    background: var(--bg-elevated);
    padding: 8px 12px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    overflow-x: auto;
}

.api-key {
    word-break: break-all;
}

/* CLI Section */
.cli-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}

.cli-section h4 {
    font-size: 0.875rem;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.cli-command {
    display: block;
    background: var(--bg-tertiary);
    padding: 16px;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    margin-bottom: 12px;
    overflow-x: auto;
    white-space: nowrap;
}

/* Warning Banner */
.warning-banner {
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid var(--status-warning);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 0.875rem;
    color: var(--status-warning);
}

/* Info Banner */
.info-banner {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--status-info);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.info-banner p {
    margin-bottom: 8px;
}

.info-banner p:last-child {
    margin-bottom: 0;
}

/* Security Note */
.security-note {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--status-success);
    font-size: 0.875rem;
    margin-top: 8px;
}

.security-note svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Help Text */
.help-text {
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
    font-size: 0.875rem;
}

.help-text p {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.help-text ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.help-text li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

.help-text li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.help-text code {
    background: var(--bg-elevated);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    word-break: break-all;
}

/* Invite */
.invite-details {
    text-align: center;
}

.invite-details p {
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.invite-code-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.invite-code-display code {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 4px;
    padding: 16px 24px;
    background: var(--bg-tertiary);
    border-radius: 8px;
}

.hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

/* Toast */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    font-size: 13px;
    animation: slideIn 0.2s ease;
}

.toast svg {
    width: 18px;
    height: 18px;
}

.toast.success {
    border-color: var(--status-success);
}

.toast.success svg {
    color: var(--status-success);
}

.toast.error {
    border-color: var(--status-error);
}

.toast.error svg {
    color: var(--status-error);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Loading */
.loading {
    text-align: center;
    color: var(--text-muted);
    padding: 40px;
}

/* Skeleton Loaders */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-tertiary) 25%,
        var(--bg-elevated) 50%,
        var(--bg-tertiary) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 6px;
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 12px;
}

.skeleton-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.skeleton-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.skeleton-content {
    flex: 1;
}

.skeleton-title {
    height: 16px;
    width: 150px;
    margin-bottom: 8px;
}

.skeleton-meta {
    height: 12px;
    width: 250px;
}

.skeleton-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.skeleton-btn {
    height: 32px;
    width: 70px;
    border-radius: 6px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 40px;
}

.empty-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--text-muted);
}

.empty-icon svg {
    width: 28px;
    height: 28px;
}

.empty-state h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 20px;
}

/* Show More Container */
.show-more-container {
    display: flex;
    justify-content: center;
    padding: 16px;
    margin-top: 8px;
}

.show-more-container .btn {
    gap: 8px;
}

/* Members List */
.members-list {
    margin-bottom: 20px;
}

.member-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    margin-bottom: 8px;
}

.member-row:last-child {
    margin-bottom: 0;
}

.member-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.member-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
}

.member-details {
    display: flex;
    flex-direction: column;
}

.member-name {
    font-weight: 500;
    font-size: 14px;
}

.member-joined {
    font-size: 12px;
    color: var(--text-muted);
}

.member-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Settings Modal */
.settings-section {
    margin-bottom: 24px;
}

.settings-section h4 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.settings-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.settings-item:last-child {
    border-bottom: none;
}

.settings-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
}

.settings-value {
    color: var(--text-secondary);
}

.settings-mono {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
}

.settings-links {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

.settings-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.15s;
}

.settings-links a:hover {
    color: var(--accent-secondary);
}

.settings-links a svg {
    width: 14px;
    height: 14px;
}

kbd {
    display: inline-block;
    padding: 4px 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    border-radius: 4px;
    color: var(--text-secondary);
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    border-radius: 6px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.15s;
}

.theme-toggle:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
}

.theme-toggle svg {
    width: 16px;
    height: 16px;
}

.theme-icon-light {
    display: none;
}

.theme-icon-dark {
    display: block;
}

[data-theme="light"] .theme-icon-light {
    display: block;
}

[data-theme="light"] .theme-icon-dark {
    display: none;
}

.theme-toggle-label {
    font-size: 13px;
    font-weight: 500;
}

/* About Section */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.about-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.about-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-muted);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.about-icon svg {
    width: 24px;
    height: 24px;
}

.about-header h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.about-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

.about-body {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.about-body p {
    margin-bottom: 16px;
}

.about-body strong {
    color: var(--text-primary);
}

/* Architecture Diagram */
.architecture-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.arch-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: 8px;
    min-width: 120px;
}

.arch-node svg {
    width: 28px;
    height: 28px;
}

.arch-node span {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
}

.arch-node small {
    font-size: 11px;
    color: var(--text-muted);
}

.arch-node.client {
    border-color: var(--status-info);
    color: var(--status-info);
}

.arch-node.server {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.arch-node.worker {
    border-color: var(--status-success);
    color: var(--status-success);
}

.arch-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
}

.arch-arrow svg {
    width: 20px;
    height: 20px;
}

.arch-arrow small {
    font-size: 10px;
}

/* About List */
.about-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.about-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.about-list li:last-child {
    border-bottom: none;
}

.about-list li > svg {
    width: 20px;
    height: 20px;
    color: var(--accent-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.about-list li div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.about-list li strong {
    font-size: 14px;
}

.about-list li span {
    font-size: 13px;
    color: var(--text-muted);
}

/* About Callout */
.about-callout {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--accent-subtle);
    border: 1px solid var(--accent-muted);
    border-radius: 8px;
    margin: 16px 0;
}

.about-callout > svg {
    width: 20px;
    height: 20px;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.about-callout.warning {
    background: rgba(234, 179, 8, 0.08);
    border-color: rgba(234, 179, 8, 0.2);
}

.about-callout.warning > svg {
    color: var(--status-warning);
}

.about-callout div {
    font-size: 13px;
}

/* Role Comparison */
.role-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin: 16px 0;
}

.role-card {
    background: var(--bg-tertiary);
    border-radius: 8px;
    overflow: hidden;
}

.role-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    font-weight: 600;
}

.role-header svg {
    width: 18px;
    height: 18px;
}

.role-header.owner {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-primary);
}

.role-header.member {
    background: rgba(59, 130, 246, 0.15);
    color: var(--status-info);
}

.role-card ul {
    list-style: none;
    padding: 12px 16px;
    margin: 0;
}

.role-card li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.role-card li svg {
    width: 14px;
    height: 14px;
}

.role-card li svg[data-lucide="check"] {
    color: var(--status-success);
}

.role-card li svg[data-lucide="x"] {
    color: var(--text-muted);
}

/* About Code Block */
.about-code {
    background: var(--bg-tertiary);
    border-radius: 8px;
    overflow: hidden;
    margin: 16px 0;
}

.about-code .code-header {
    padding: 10px 16px;
    background: var(--bg-elevated);
    font-size: 12px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-subtle);
}

.about-code code {
    display: block;
    padding: 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--text-primary);
    overflow-x: auto;
}

/* About Flow */
.about-flow {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0;
}

.flow-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.flow-number {
    width: 32px;
    height: 32px;
    background: var(--accent-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.flow-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 4px;
}

.flow-content strong {
    font-size: 14px;
}

.flow-content span {
    font-size: 13px;
    color: var(--text-muted);
}

/* Connection Modes */
.connection-modes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin: 16px 0;
}

.mode-card {
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 16px;
}

.mode-card h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 8px;
}

.mode-card h4 svg {
    width: 16px;
    height: 16px;
    color: var(--accent-primary);
}

.mode-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.mode-card code {
    display: block;
    padding: 10px 12px;
    background: var(--bg-primary);
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    overflow-x: auto;
}

.mode-tag {
    font-size: 11px;
    color: var(--accent-primary);
    background: var(--accent-subtle);
    padding: 4px 8px;
    border-radius: 4px;
}

/* CLI Reference */
.cli-reference {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 16px 0;
}

.cli-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-radius: 8px;
}

.cli-item code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--accent-primary);
    flex-shrink: 0;
    min-width: 380px;
}

.cli-item span {
    font-size: 13px;
    color: var(--text-muted);
}

/* About Links */
.about-links {
    display: flex;
    gap: 16px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}

.about-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.15s;
}

.about-links a:hover {
    color: var(--accent-secondary);
}

.about-links a svg {
    width: 16px;
    height: 16px;
}

/* Quickstart Section */
.quickstart-steps-overview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    flex-wrap: wrap;
}

.step-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.step-num {
    width: 22px;
    height: 22px;
    background: var(--accent-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.step-arrow {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.step-icon {
    background: var(--accent-primary) !important;
    color: white !important;
    font-weight: 700;
    font-size: 18px;
}

.step-icon span {
    color: white;
}

.optional-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
    vertical-align: middle;
}

.quickstart-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 16px 0;
}

.option-card {
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 20px;
}

.option-card h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.option-card h4 svg {
    width: 18px;
    height: 18px;
    color: var(--accent-primary);
}

.option-card p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.option-card .about-code {
    margin: 12px 0 0 0;
}

.option-card .about-code code {
    padding: 12px;
    font-size: 12px;
}

/* Config file pre block */
.about-code.config-file pre {
    margin: 0;
    padding: 16px;
    background: transparent;
    overflow-x: auto;
}

.about-code.config-file code {
    display: block;
    padding: 0;
    white-space: pre;
    font-size: 12px;
    line-height: 1.5;
}

/* Next Steps Grid */
.next-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.next-step-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.15s;
}

.next-step-card:hover {
    border-color: var(--accent-primary);
    background: var(--bg-elevated);
}

.next-step-card > svg {
    width: 24px;
    height: 24px;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.next-step-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.next-step-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* Responsive for Quickstart */
@media (max-width: 768px) {
    .quickstart-steps-overview {
        flex-direction: column;
        gap: 12px;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .step-pill {
        width: 100%;
        justify-content: center;
    }
}

/* Responsive for About */
@media (max-width: 768px) {
    .architecture-diagram {
        flex-direction: column;
    }

    .arch-arrow {
        transform: rotate(90deg);
    }

    .cli-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .cli-item code {
        min-width: auto;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-default);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

.sidebar-overlay.active {
    display: block;
}

/* Responsive */
@media (max-width: 900px) {
    .mobile-menu-btn {
        display: flex !important;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .login-section {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .section-actions {
        flex-wrap: wrap;
    }

    .filter-group {
        width: 100%;
        flex-wrap: wrap;
    }

    .filter-select {
        flex: 1;
        min-width: 120px;
    }

    .search-box {
        width: 100%;
    }

    .modal-content {
        margin: 20px;
        padding: 24px;
    }

    .detail-row {
        flex-direction: column;
        align-items: stretch;
    }

    .detail-row label {
        min-width: auto;
    }

    .token-header, .room-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .token-actions, .room-actions {
        width: 100%;
        flex-wrap: wrap;
    }
}
