/* ── Herald App Layout ── */

:root {
    --herald-primary: #6366f1;
    --herald-primary-dark: #4f46e5;
    --herald-sidebar-bg: #1e1b4b;
    --herald-sidebar-width: 240px;
    --herald-sidebar-collapsed: 60px;
    --herald-header-height: 56px;
}

.herald-app {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.herald-sidebar {
    width: var(--herald-sidebar-width);
    background: var(--herald-sidebar-bg);
    color: #fff;
    display: flex;
    flex-direction: column;
    transition: width 0.2s ease;
    overflow: hidden;
}

.sidebar-collapsed .herald-sidebar {
    width: var(--herald-sidebar-collapsed);
}

.herald-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-collapsed .herald-sidebar-header {
    justify-content: center;
    padding: 1rem 0.5rem;
}

.herald-logo {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.herald-sidebar-toggle {
    color: rgba(255, 255, 255, 0.6);
    border: none;
}

.herald-sidebar-toggle:hover {
    color: #fff;
}

.herald-sidebar-nav {
    padding: 0.5rem;
    flex: 1;
    overflow-y: auto;
}

.herald-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.15s;
    font-size: 0.9rem;
}

.herald-nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.herald-nav-item.active {
    background: var(--herald-primary);
    color: #fff;
}

.herald-nav-item i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.herald-nav-section {
    padding: 1rem 0.75rem 0.25rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
}

/* Main area */
.herald-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.herald-header {
    height: var(--herald-header-height);
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}

.herald-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.herald-header-left .mud-input-control {
    margin: 0;
}

.herald-header-left .mud-select .mud-input-slot {
    padding-top: 4px;
    padding-bottom: 4px;
    font-size: 0.875rem;
}

.herald-header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.herald-content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    background: #f9fafb;
}
