/* ============================================
   LAYOUT
   ============================================ */
.app { display: flex; flex-direction: column; min-height: 100vh; }

.header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-logo {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.85rem; color: #fff;
    flex-shrink: 0;
}

.header-title { font-size: 1rem; font-weight: 600; color: var(--text-bright); }
.header-sep { width: 1px; height: 24px; background: var(--border); }
.header-app-name { font-size: 0.9rem; color: var(--primary-light); font-weight: 500; }
.header-spacer { flex: 1; }

.header-actions { display: flex; gap: 0.5rem; }

.body { display: flex; flex: 1; }

/* ============================================
   SIDEBAR - Container
   ============================================ */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    height: calc(100vh - var(--header-height));
    position: sticky;
    top: var(--header-height);
    flex-shrink: 0;
}

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

/* ============================================
   MAIN CONTENT - FULL WIDTH
   ============================================ */
.main {
    flex: 1;
    padding: 2rem 3rem;
    overflow-y: auto;
    height: calc(100vh - var(--header-height));
}

.section { margin-bottom: 4rem; }
.section-title {
    font-size: 1.4rem;
    color: var(--text-bright);
    font-weight: 600;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}
.section-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .sidebar { display: none; }
    .main { padding: 1rem; }
    .form-row { grid-template-columns: 1fr; }
    .stakeholder-grid { grid-template-columns: 1fr; }
}

/* ============================================
   PRINT
   ============================================ */
@media print {
    .sidebar, .header-actions, .add-btn, .uc-actions, .inline-form, .module-card-remove { display: none !important; }
    .main { max-width: 100%; padding: 0; }
    .section { display: block !important; page-break-inside: avoid; }
    body { background: #fff; color: #1a1a1a; }
    .card, .uc-item, .br-item, .module-card, .entity-block, .interaction-item { border-color: #ddd; }
    .tab-panel { display: block !important; }
    .tab-bar { display: none; }
    .review-panel, .comment-btn-container { display: none !important; }
}
