/* /editor/assets/css/editor.css */

body.editor-body {
    font-family: 'Source Sans Pro', sans-serif;
    background-color: #f4f6f9;
    color: #212529;
}

/* Sidebar */

.editor-sidebar-nav .nav-link {
    color: #212529;
    border-radius: 0.5rem;
    margin-bottom: 0.25rem;
    padding: 0.75rem 0.9rem;
    font-weight: 500;
}

.editor-sidebar-nav .nav-link:hover {
    background-color: var(--editor-brand-soft, #e9f2ff);
    color: var(--editor-brand-accent, #0d6efd);
}

.editor-sidebar-nav .nav-link.active {
    background-color: var(--editor-brand-accent, #0d6efd);
    color: #ffffff;
}

/* Cards / Panels */

.editor-stat-card,
.editor-panel {
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 0.125rem 0.5rem rgba(0,0,0,0.08);
}

.editor-stat-card .card-body {
    padding: 1.25rem;
}

.editor-stat-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.editor-panel .card-header {
    background: #ffffff;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
}

/* Loading */

#editor-content.editor-content-loading {
    opacity: 0.55;
    pointer-events: none;
}

/* Topbar */

.editor-topbar {
    background: #ffffff;
    border-bottom: 1px solid #e9ecef;
    min-height: 72px;
}

.editor-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: #212529;
    min-width: 0;
}

.editor-brand:hover {
    color: #212529;
    text-decoration: none;
}

.editor-brand-copy {
    line-height: 1.1;
    min-width: 0;
}

.editor-brand-copy .brand-title {
    font-size: 1rem;
    font-weight: 700;
    display: block;
}

.editor-brand-copy .brand-subtitle {
    font-size: .82rem;
    color: #6c757d;
    display: block;
    margin-top: .1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 420px;
}

/* User chip */

.editor-user-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: var(--editor-brand-soft, #eaf3ff);
    color: var(--editor-brand-accent, #0d6efd);
    border-radius: 999px;
    padding: .45rem .85rem;
    font-weight: 700;
    font-size: .92rem;
}

/* Sidebar layout */

.editor-sidebar-desktop {
    min-height: calc(100vh - 72px);
    background: #fff;
    border-right: 1px solid #e9ecef;
}

.editor-sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid #eef1f4;
}

.editor-sidebar-panel {
    background: var(--editor-brand-gradient, linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%));
    color: #fff;
    border-radius: 18px;
    padding: 1rem;
    box-shadow: 0 10px 22px rgba(0,0,0,.10);
}

.editor-sidebar-panel .panel-subtitle {
    font-size: .88rem;
    opacity: .92;
    margin-bottom: 0;
}

.editor-sidebar-nav-wrap {
    padding: .75rem;
}

.editor-sidebar-label {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #6c757d;
    font-weight: 700;
    padding: .5rem .75rem;
}

/* Navigation links */

.editor-nav-link {
    border-radius: 14px;
    color: #212529;
    font-weight: 600;
    margin-bottom: .3rem;
    padding: .8rem .95rem;
}

.editor-nav-link:hover {
    background: #f8f9fa;
}

.editor-nav-link.active {
    background: var(--editor-brand-accent, #0d6efd);
    color: #fff;
    box-shadow: 0 8px 18px rgba(0,0,0,.10);
}

.editor-nav-link.active i,
.editor-nav-link.active p,
.editor-nav-link.active span {
    color: #fff;
}

/* Page layout */

.editor-content-shell {
    padding: 1.5rem;
}

.editor-page-header {
    background: #fff;
    border-radius: 18px;
    padding: 1rem 1.25rem;
    box-shadow: 0 8px 20px rgba(0,0,0,.05);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .85rem;
    border-left: 4px solid var(--editor-brand-accent, #0d6efd);
}

.editor-page-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--editor-brand-soft, #eaf3ff);
    color: var(--editor-brand-accent, #0d6efd);
    font-size: 1.1rem;
}

.editor-page-breadcrumb {
    font-size: .85rem;
    color: #6c757d;
    margin-bottom: .2rem;
}

.editor-page-header h1 {
    margin: 0;
    font-size: 1.65rem;
    font-weight: 700;
}

/* Mobile / offcanvas */

.offcanvas-brand-box {
    background: var(--editor-brand-gradient, linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%));
    color: #fff;
    border-radius: 18px;
    padding: 1rem;
    margin-bottom: 1rem;
}

/* =========================
   Brand Logo System
========================= */

.editor-brand-badge,
.editor-sidebar-panel-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.editor-brand-logo,
.editor-sidebar-logo,
.editor-offcanvas-logo {
    display: block;
    width: auto;
    height: auto;
    object-fit: contain;
    max-width: 100%;
}

/* =========================
   Community Media
   wide logo treatment
========================= */

.brand-community-media .editor-brand-badge {
    width: 180px;
    height: 56px;
    padding: 4px 8px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.brand-community-media .editor-brand-logo {
    max-height: 48px;
}

.brand-community-media .editor-sidebar-panel-icon {
    width: 120px;
    height: 42px;
    padding: 2px 4px;
    background: transparent;
    border-radius: 0;
}

.brand-community-media .editor-sidebar-logo {
    max-height: 36px;
}

.brand-community-media .editor-offcanvas-logo {
    max-height: 30px;
}

/* =========================
   Monthly Media
   boxed logo treatment
========================= */

.brand-monthly-media .editor-brand-badge {
    width: 60px;
    height: 60px;
    padding: 6px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(0,0,0,.12);
}

.brand-monthly-media .editor-brand-logo {
    max-height: 44px;
}

.brand-monthly-media .editor-sidebar-panel-icon {
    width: 48px;
    height: 48px;
    padding: 4px;
    background: rgba(255,255,255,0.92);
    border-radius: 12px;
}

.brand-monthly-media .editor-sidebar-logo {
    max-height: 36px;
}

.brand-monthly-media .editor-offcanvas-logo {
    max-height: 32px;
}

/* Fine tuning */

.brand-community-media .editor-brand-copy .brand-subtitle {
    max-width: 360px;
}

.editor-sidebar-panel .d-flex.align-items-center.gap-2 {
    align-items: center !important;
}

/* Responsive */

@media (max-width: 991.98px) {
    .brand-community-media .editor-brand-badge {
        width: 140px;
        height: 48px;
    }

    .brand-community-media .editor-brand-logo {
        max-height: 40px;
    }

    .editor-brand-copy .brand-subtitle {
        max-width: 220px;
    }
}

@media (max-width: 575.98px) {
    .editor-brand-copy .brand-title {
        font-size: .92rem;
    }

    .editor-brand-copy .brand-subtitle {
        font-size: .76rem;
        max-width: 170px;
    }

    .brand-monthly-media .editor-brand-badge {
        width: 50px;
        height: 50px;
    }

    .brand-monthly-media .editor-brand-logo {
        max-height: 36px;
    }

    .brand-community-media .editor-brand-badge {
        width: 120px;
        height: 42px;
    }

    .brand-community-media .editor-brand-logo {
        max-height: 34px;
    }
}