/* ==========================================================
   CIBM Studio Pro
   Panel Framework
   Version 9.1
========================================================== */

/* ----------------------------------------------------------
   Generic Panel
---------------------------------------------------------- */

.panel {

    display: flex;
    flex-direction: column;

    width: 100%;
    height: 100%;

    background: var(--background);

}

/* ----------------------------------------------------------
   Panel Header
---------------------------------------------------------- */

.panel-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 8px 12px;

    background: var(--surface);

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

    font-weight: 600;

    font-size: 13px;

}

.panel-title {

    display: flex;

    align-items: center;

    gap: 8px;

}

.panel-actions {

    display: flex;

    gap: 6px;

}

.panel-action {

    width: 24px;
    height: 24px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 4px;

    cursor: pointer;

    transition: .15s;

}

.panel-action:hover {

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

}

/* ----------------------------------------------------------
   Panel Toolbar
---------------------------------------------------------- */

.panel-toolbar {

    display: flex;

    align-items: center;

    gap: 6px;

    padding: 6px 8px;

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

    background: var(--surface);

}

/* ----------------------------------------------------------
   Panel Content
---------------------------------------------------------- */

.panel-content {

    flex: 1;

    overflow: auto;

    padding: 10px;

}

/* ----------------------------------------------------------
   Search Box
---------------------------------------------------------- */

.panel-search {

    width: 100%;

    padding: 6px 10px;

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

    border-radius: 4px;

    background: white;

    outline: none;

}

.panel-search:focus {

    border-color: var(--accent);

}

/* ----------------------------------------------------------
   Tree View
---------------------------------------------------------- */

.panel-tree {

    display: flex;

    flex-direction: column;

}

.panel-tree-item {

    padding: 6px 8px;

    cursor: pointer;

    border-radius: 4px;

}

.panel-tree-item:hover {

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

}

.panel-tree-item.selected {

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

}

/* ----------------------------------------------------------
   Property Grid
---------------------------------------------------------- */

.property-grid {

    display: grid;

    grid-template-columns: 110px 1fr;

    gap: 8px;

    align-items: center;

}

.property-grid label {

    font-size: 12px;

    color: #666;

}

.property-grid input,
.property-grid select,
.property-grid textarea {

    width: 100%;

    padding: 6px;

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

    border-radius: 4px;

}

/* ----------------------------------------------------------
   Cards
---------------------------------------------------------- */

.panel-card {

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

    border-radius: 6px;

    background: white;

    padding: 10px;

    margin-bottom: 10px;

}

.panel-card-title {

    font-weight: 600;

    margin-bottom: 6px;

}

/* ----------------------------------------------------------
   Empty State
---------------------------------------------------------- */

.panel-empty {

    display: flex;

    align-items: center;

    justify-content: center;

    height: 100%;

    color: #888;

    font-size: 13px;

    text-align: center;

}

/* ----------------------------------------------------------
   Scrollbar
---------------------------------------------------------- */

.panel-content::-webkit-scrollbar {

    width: 8px;

}

.panel-content::-webkit-scrollbar-thumb {

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

    border-radius: 4px;

}

.panel-content::-webkit-scrollbar-thumb:hover {

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

}