/* LOB Planner - Estilos do Módulo */

#lobPlannerFullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #f8fafc;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.lob-header {
    height: 60px;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.lob-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.lob-header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lob-workspace {
    flex: 1;
    display: flex;
    overflow: hidden;
    position: relative;
}

/* Sidebar */
.lob-sidebar {
    width: 320px;
    min-width: 320px;
    background: white;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease, min-width 0.3s ease, border-right-color 0.3s ease;
    z-index: 10;
    overflow: hidden;
}

.lob-sidebar.collapsed {
    width: 0px;
    min-width: 0px;
    border-right-color: transparent;
}

.lob-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    width: 320px;
    box-sizing: border-box;
}

/* Canvas Área */
.lob-canvas-wrapper {
    flex: 1;
    overflow: auto;
    background: #f1f5f9;
    position: relative;
    cursor: grab;
}

.lob-canvas-wrapper:active {
    cursor: grabbing;
}

#lobSvg {
    display: block;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin: 0;
}

/* Elementos do SVG */
.lob-grid-line {
    stroke: #f1f5f9;
    stroke-width: 1;
}

.lob-axis-label {
    font-size: 11px;
    fill: #64748b;
    font-weight: 500;
}

.lob-weekend-band {
    fill: rgba(0, 0, 0, 0.02);
}

.lob-today-line {
    stroke: #94a3b8;
    stroke-width: 2;
    stroke-dasharray: 4 4;
}

.lob-activity-band {
    cursor: move;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.lob-activity-band:hover {
    opacity: 1;
    filter: brightness(1.1);
}

.lob-conflict-highlight {
    fill: none;
    stroke: #ef4444;
    stroke-width: 2;
    stroke-dasharray: 4 2;
    pointer-events: none;
}

/* UI Components */
.lob-activity-item {
    padding: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.lob-activity-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.lob-activity-info {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive */
@media (max-width: 1024px) {
    .lob-sidebar {
        width: 260px;
        min-width: 260px;
    }
    .lob-sidebar.collapsed {
        width: 0px;
        min-width: 0px;
    }
    .lob-sidebar-content {
        width: 260px;
    }
}

/* Animação para conflito de ritmos */
.lob-conflict-pulse {
    animation: lobPulse 2s infinite ease-in-out;
    transform-origin: center;
}

@keyframes lobPulse {
    0% {
        r: 10px;
        fill-opacity: 0.4;
    }
    50% {
        r: 18px;
        fill-opacity: 0.15;
    }
    100% {
        r: 10px;
        fill-opacity: 0.4;
    }
}

/* Botão de Toggle da Sidebar */
.lob-sidebar-toggle-btn {
    position: absolute;
    left: 308px;
    top: 12px;
    z-index: 100;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 1px solid #cbd5e1;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: left 0.3s ease, background-color 0.2s;
    color: #475569;
}
.lob-sidebar-toggle-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}
.lob-sidebar-toggle-btn i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}
.lob-sidebar.collapsed + .lob-sidebar-toggle-btn {
    left: 8px;
}
.lob-sidebar.collapsed + .lob-sidebar-toggle-btn i {
    transform: rotate(180deg);
}
