/**
 * Layout CSS - App Shell, Sidebar, Main Content
 * Zen-inspired sidebar with warm therapeutic design
 */

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

/* ============================================
   ZEN-INSPIRED SIDEBAR
   ============================================ */
.sidebar {
    width: 220px;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    padding: 28px 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

/* Logo */
.logo {
    padding: 0 24px;
    margin-bottom: 36px;
}

.logo-mark {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--sage) 0%, var(--accent) 100%);
    border-radius: 50% 50% 50% 12%;
    position: relative;
    margin-bottom: 12px;
}

.logo-mark::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.logo-text {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
}

.logo-sub {
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'DM Mono', monospace;
    margin-top: 2px;
}

/* Navigation */
.nav {
    flex: 1;
    padding: 0 12px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 12px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    cursor: pointer;
    margin-bottom: 4px;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

/* Zen-style left border indicator */
.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--accent);
    border-radius: 0 2px 2px 0;
    transition: var(--transition);
}

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

.nav-item.active {
    color: var(--accent);
    background: var(--bg-warm);
}

.nav-item.active::before {
    height: 20px;
}

.nav-icon {
    width: 18px;
    height: 18px;
    opacity: 0.6;
    flex-shrink: 0;
}

.nav-item.active .nav-icon,
.nav-item:hover .nav-icon {
    opacity: 1;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
}

.status-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'DM Mono', monospace;
    padding: 6px 10px;
    background: var(--bg-warm);
    border-radius: 12px;
    margin-bottom: 12px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--sage);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.help-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
    transition: var(--transition);
}

.help-btn:hover {
    color: var(--accent);
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
.main {
    flex: 1;
    margin-left: 220px;
    padding: 32px 40px;
}

.page-content {
    display: none;
    max-width: 1200px;
}

.page-content.active {
    display: block;
    animation: fadeInUp 0.3s ease;
}

/* Page Header */
.page-header {
    margin-bottom: 28px;
}

.page-title {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 4px;
}

.page-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    font-family: 'DM Mono', monospace;
}

