/* ──────────────────────────────────────────────
   Creator Panel — Left sidebar for Plan + Gantt
   ────────────────────────────────────────────── */

/* Outer split: creator panel + existing mp-split */
.mp-outer-split {
    display: flex;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}
.mp-outer-split > .mp-split {
    flex: 1;
    min-width: 0;
}

/* Creator panel sidebar */
.mp-creator-panel {
    width: 210px;
    min-width: 180px;
    max-width: 280px;
    border-right: 1px solid #e5e7eb;
    background: #fff;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    overflow-y: auto;
    transition: width 0.2s ease, opacity 0.2s ease, min-width 0.2s ease;
}
.mp-creator-panel.collapsed {
    width: 0;
    min-width: 0;
    overflow: hidden;
    border: none;
    opacity: 0;
    padding: 0;
}

/* Creator panel sections */
.creator-section {
    padding: 10px 10px 6px 10px;
    border-bottom: 1px solid #f0f0f0;
}
.creator-section:last-child {
    border-bottom: none;
}
.creator-section-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    margin-bottom: 8px;
}

/* Search */
.creator-search {
    position: relative;
    margin-bottom: 4px;
}
.creator-search-input {
    width: 100%;
    padding: 5px 8px 5px 28px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    outline: none;
    box-sizing: border-box;
}
.creator-search-input:focus {
    border-color: #90CAF9;
    box-shadow: 0 0 0 2px rgba(66,165,245,0.15);
}
.creator-search-icon {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #bbb;
    font-size: 12px;
    pointer-events: none;
}

/* + Mission button */
.creator-add-mission {
    width: 100%;
    font-size: 12px;
    padding: 6px 0;
}

/* Task type cards (draggable) */
.creator-task-cards {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.creator-task-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: grab;
    font-size: 12px;
    background: #fff;
    user-select: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.creator-task-card:hover {
    border-color: #90CAF9;
    box-shadow: 0 1px 3px rgba(33,150,243,0.15);
}
.creator-task-card:active {
    cursor: grabbing;
    opacity: 0.6;
}
.creator-task-card .fas {
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

/* Template items */
.creator-template-group {
    margin-bottom: 6px;
}
.creator-template-group-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    color: #666;
    user-select: none;
}
.creator-template-group-header:hover {
    color: #333;
}
.creator-template-group-header .fas {
    font-size: 10px;
    width: 12px;
    text-align: center;
    transition: transform 0.15s;
}
.creator-template-group-body {
    padding-left: 4px;
}
.creator-template-item {
    padding: 5px 6px;
    font-size: 12px;
    cursor: pointer;
    border-radius: 3px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.1s;
}
.creator-template-item:hover {
    background: #f5f8ff;
}
.creator-template-item.creator-template-selected {
    background: #dbeafe;
    border-left: 3px solid #3b82f6;
    padding-left: 3px;
}
.creator-template-item .creator-tpl-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.creator-template-item .creator-tpl-count {
    font-size: 10px;
    color: #999;
    flex-shrink: 0;
}
.creator-no-templates {
    padding: 8px 6px;
    font-size: 11px;
    color: #999;
    font-style: italic;
}

/* Ghost action bar */
.creator-ghost-actions {
    padding: 8px 10px;
    border-top: 1px solid #e5e7eb;
    background: #fafbfd;
    display: flex;
    gap: 6px;
    margin-top: auto;
    flex-shrink: 0;
}
.creator-ghost-actions .btn {
    flex: 1;
    font-size: 12px;
    padding: 5px 0;
}

/* Toggle button active state */
.mp-creator-toggle.active {
    background: #e3f2fd;
    border-color: #90CAF9;
    color: #1976D2;
}

/* ──────────────────────────────────────────────
   Ghost styles — Plan rows
   ────────────────────────────────────────────── */

.plan-row-ghost {
    opacity: 0.5;
    font-style: italic;
}
.plan-row-ghost td {
    border: 1px dashed #90CAF9 !important;
    background: #f0f7ff;
}
.plan-row-ghost .plan-name-cell a {
    color: #666;
    pointer-events: none;
    cursor: default;
}

/* ──────────────────────────────────────────────
   Ghost styles — Gantt items
   ────────────────────────────────────────────── */

.gantt-ghost {
    background: rgba(66,165,245,0.1) !important;
    border: 1px dashed #90CAF9 !important;
    opacity: 0.5 !important;
}
.gantt-ghost .vis-item-content {
    font-style: italic !important;
    color: #666 !important;
}

/* ──────────────────────────────────────────────
   Drop zone styles
   ────────────────────────────────────────────── */

.plan-row-drop-target {
    background: #e3f2fd !important;
    outline: 2px dashed #42A5F5;
}

.gantt-drop-active .gantt-timeline-container {
    outline: 2px dashed #42A5F5;
}
