/* ==========================================================
   CIBM Studio Pro
   Backstage View
   Version 9.1
========================================================== */

/* ----------------------------------------------------------
   Overlay
---------------------------------------------------------- */

#backstageView {

    position: fixed;

    inset: 0;

    display: none;

    background: var(--background);

    z-index: 10000;

    overflow: hidden;

}

#backstageView.active {

    display: flex;

}

/* ----------------------------------------------------------
   Navigation
---------------------------------------------------------- */

.backstage-nav {

    width: 260px;

    background: var(--surface);

    border-right: 1px solid var(--border);

    display: flex;

    flex-direction: column;

    overflow-y: auto;

}

.backstage-nav-item {

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 12px 18px;

    cursor: pointer;

    transition: background .15s ease;

    font-size: 14px;

}

.backstage-nav-item:hover {

    background: rgba(0,0,0,.05);

}

.backstage-nav-item.active {

    background: rgba(0,102,204,.15);

    color: var(--accent);

    font-weight: 600;

}

/* ----------------------------------------------------------
   Content Area
---------------------------------------------------------- */

.backstage-content {

    flex: 1;

    display: flex;

    flex-direction: column;

    overflow: auto;

    padding: 28px;

}

.backstage-title {

    font-size: 28px;

    font-weight: 600;

    margin-bottom: 24px;

}

/* ----------------------------------------------------------
   Sections
---------------------------------------------------------- */

.backstage-section {

    margin-bottom: 32px;

}

.backstage-section h2 {

    font-size: 18px;

    margin-bottom: 12px;

}

.backstage-section p {

    color: #666;

    line-height: 1.5;

}

/* ----------------------------------------------------------
   Recent Files
---------------------------------------------------------- */

.recent-files {

    display: flex;

    flex-direction: column;

    gap: 8px;

}

.recent-file {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 10px 14px;

    border: 1px solid var(--border);

    border-radius: 6px;

    cursor: pointer;

    transition: .15s;

}

.recent-file:hover {

    background: rgba(0,0,0,.04);

}

.recent-file-name {

    font-weight: 500;

}

.recent-file-path {

    font-size: 12px;

    color: #777;

}

/* ----------------------------------------------------------
   Action Buttons
---------------------------------------------------------- */

.backstage-actions {

    display: flex;

    flex-wrap: wrap;

    gap: 12px;

}

.backstage-button {

    padding: 10px 18px;

    border: 1px solid var(--border);

    border-radius: 6px;

    background: white;

    cursor: pointer;

    transition: .15s;

    font-size: 14px;

}

.backstage-button:hover {

    background: rgba(0,0,0,.05);

}

.backstage-button.primary {

    background: var(--accent);

    color: #fff;

    border-color: var(--accent);

}

/* ----------------------------------------------------------
   Properties Grid
---------------------------------------------------------- */

.backstage-properties {

    display: grid;

    grid-template-columns: 180px 1fr;

    gap: 10px 18px;

}

.backstage-properties label {

    font-weight: 600;

    color: #555;

}

/* ----------------------------------------------------------
   Responsive
---------------------------------------------------------- */

@media (max-width: 900px) {

    #backstageView.active {

        flex-direction: column;

    }

    .backstage-nav {

        width: 100%;

        border-right: none;

        border-bottom: 1px solid var(--border);

    }

}