/* ========== APP LAYOUT ========== */
.app { display: flex; min-height: 100vh; animation: fadeIn 0.5s ease; }

/* ========== SIDEBAR ========== */
.sidebar { width: var(--sidebar-w); background: rgba(15, 15, 20, 0.95); border-right: 1px solid var(--border); display: flex; flex-direction: column; position: fixed; left: 0; top: 0; height: 100vh; z-index: 100; transition: transform 0.3s ease; }
.sidebar-header { display: flex; align-items: center; gap: 10px; padding: 20px 20px 16px; border-bottom: 1px solid var(--border); }
.sidebar-logo { font-size: 1.5rem; }
.sidebar-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; color: var(--text); }
.sidebar-nav { flex: 1; padding: 12px 10px; overflow-y: auto; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; background: transparent; border: none; color: var(--text-muted); font-size: 0.9rem; border-radius: var(--radius-sm); cursor: pointer; transition: all 0.2s; font-family: var(--font); text-align: left; position: relative; }
.nav-item:hover { background: var(--accent-soft); color: var(--text); }
.nav-item.active { background: var(--accent-soft); color: var(--accent); }
.nav-item.active svg { stroke: var(--accent); }
.nav-badge { margin-left: auto; background: var(--pink); color: #fff; font-size: 0.7rem; padding: 2px 7px; border-radius: 10px; font-weight: 600; }
.peace-badge { background: var(--yellow); color: #000; }
.sidebar-footer { padding: 16px 20px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.sidebar-actions { display: flex; align-items: center; gap: 6px; }
.user-info { display: flex; align-items: center; gap: 10px; }
.user-avatar { width: 32px; height: 32px; background: linear-gradient(135deg, var(--accent), var(--pink)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 600; color: #fff; }
.user-name { font-size: 0.85rem; color: var(--text-muted); }
.logout-btn { background: transparent; border: none; color: var(--text-dim); cursor: pointer; padding: 6px; border-radius: 6px; transition: all 0.2s; }
.logout-btn:hover { color: var(--red); background: var(--red-soft); }

/* ========== MOBILE HEADER ========== */
.mobile-header { display: none; position: fixed; top: 0; left: 0; right: 0; height: var(--header-h); z-index: 90; background: rgba(15, 15, 20, 0.95); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); padding: 0 16px; align-items: center; justify-content: space-between; }
.menu-toggle { background: none; border: none; color: var(--text); cursor: pointer; padding: 4px; }
.mobile-page-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; }
.header-logo { font-size: 1.3rem; }

/* ========== MOBILE BOTTOM NAV ========== */
.mobile-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; height: 64px; z-index: 90; background: rgba(15, 15, 20, 0.97); backdrop-filter: blur(20px); border-top: 1px solid var(--border); justify-content: space-around; align-items: center; padding: 0 4px; }
.mob-nav-item { display: flex; flex-direction: column; align-items: center; gap: 2px; background: none; border: none; color: var(--text-dim); font-size: 0.65rem; cursor: pointer; padding: 6px 10px; border-radius: var(--radius-sm); transition: all 0.2s; font-family: var(--font); }
.mob-nav-item.active { color: var(--accent); }
.mob-nav-item:hover { color: var(--text-muted); }

/* ========== CONTENT AREA ========== */
.content { flex: 1; margin-left: var(--sidebar-w); padding: 32px 40px; min-height: 100vh; max-width: 1000px; }
.page { display: none; }
.page.active { display: block; animation: fadeIn 0.3s ease; }
.page-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 28px; flex-wrap: wrap; gap: 16px; }
.page-title { font-family: var(--font-display); font-size: 2rem; font-weight: 500; color: var(--text); line-height: 1.2; }
.page-subtitle { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }
.date-display { color: var(--text-dim); font-size: 0.85rem; text-align: right; }
