/* ============================================
   Overview Map - Draggable Workspace
   ============================================ */

.overview-map {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
    cursor: grab;
}

.overview-map.panning {
    cursor: grabbing;
}

.overview-container {
    position: absolute;
    width: 2000px;
    height: 2000px;
    transition: transform 0.1s ease-out;
}

.overview-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.overview-cells {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 10;
}

/* Overview Cell Styles */
.overview-cell {
    position: absolute;
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px;
    cursor: move;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    width: 200px;
    min-height: 130px;
    user-select: none;
}

.overview-cell:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.overview-cell.selected {
    border-color: var(--primary);
    border-width: 3px;
    box-shadow: var(--shadow-lg);
}

.overview-cell.dragging {
    opacity: 0.8;
    cursor: grabbing;
    z-index: 100;
    box-shadow: var(--shadow-lg);
}

.overview-cell.connect-source {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

/* Cell status colors in overview */
.overview-cell.healthy {
    border-color: var(--success);
}

.overview-cell.aging {
    border-color: var(--warning);
}

.overview-cell.dying {
    border-color: var(--danger);
}

.overview-cell.newborn {
    border-color: #4DABF7;
}

.overview-cell.deprecated {
    opacity: 0.4;
    border-style: dashed;
    border-color: var(--text-tertiary);
    background: var(--bg-tertiary);
}

.overview-cell.deprecated .overview-cell-status::after {
    content: " (Deprecated)";
    font-size: 9px;
    color: var(--text-tertiary);
}

.overview-cell-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.overview-cell-icon {
    font-size: 22px;
}

.overview-cell-title {
    flex: 1;
}

.overview-cell-title h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.overview-cell-status {
    font-size: 10px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.overview-cell-health {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.overview-health-bar {
    flex: 1;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
}

.overview-health-fill {
    height: 100%;
    background: var(--success);
    transition: width 0.3s ease;
}

.overview-cell.aging .overview-health-fill {
    background: var(--warning);
}

.overview-cell.dying .overview-health-fill {
    background: var(--danger);
}

.overview-health-value {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
}

.overview-cell-info {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: var(--text-tertiary);
}

.overview-cell-badge {
    position: absolute;
    top: -8px;
    right: 12px;
    background: linear-gradient(135deg, #4DABF7, #339AF0);
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
}

/* Floating Toolbar */
.floating-toolbar {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 8px;
    display: flex;
    gap: 4px;
    box-shadow: var(--shadow-lg);
    z-index: 100;
}

.toolbar-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.toolbar-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.toolbar-btn.active {
    background: var(--primary);
    color: white;
}

.toolbar-divider {
    width: 1px;
    background: var(--border);
    margin: 0 4px;
}

.zoom-indicator {
    padding: 0 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 45px;
    text-align: center;
    user-select: none;
}

/* Cell View Mode - Organic circular cells */
.overview-cell.cell-mode {
    width: 120px;
    height: 120px;
    min-height: unset;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cell-mode-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px;
}

.cell-mode-icon {
    font-size: 32px;
    line-height: 1;
}

.cell-mode-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.cell-mode-health {
    font-size: 13px;
    font-weight: 700;
    margin-top: 2px;
}

/* Cell mode status colors */
.overview-cell.cell-mode.healthy {
    border-color: var(--status-healthy);
    background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(34, 197, 94, 0.1) 100%);
}

.overview-cell.cell-mode.healthy .cell-mode-health {
    color: var(--status-healthy);
}

.overview-cell.cell-mode.aging {
    border-color: var(--status-aging);
    background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(251, 191, 36, 0.1) 100%);
}

.overview-cell.cell-mode.aging .cell-mode-health {
    color: var(--status-aging);
}

.overview-cell.cell-mode.dying {
    border-color: var(--status-dying);
    background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(239, 68, 68, 0.1) 100%);
}

.overview-cell.cell-mode.dying .cell-mode-health {
    color: var(--status-dying);
}

.overview-cell.cell-mode.newborn {
    border-color: var(--status-newborn);
    background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(168, 85, 247, 0.1) 100%);
}

.overview-cell.cell-mode.newborn .cell-mode-health {
    color: var(--status-newborn);
}

.overview-cell.cell-mode.deprecated {
    opacity: 0.4;
    border-style: dashed;
}

.overview-cell.cell-mode.selected {
    border-width: 3px;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* Made with Bob */
