/**
 * Project Hub CSS
 * Styles for the Project Hub panel
 */

/* Panel and tab positioning */
.project-hub-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70vh;
    background-color: #1a1a1a;
    border-top: 1px solid #444;
    z-index: 1040;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.project-hub-panel.open {
    transform: translateY(0);
}

.project-hub-tab {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2a2a2a;
    padding: 8px 15px;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    z-index: 1050;
    border: 1px solid #444;
    border-bottom: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.project-hub-tab:hover {
    background-color: #343434;
}

.project-hub-tab.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Panel header */
.project-hub-header {
    padding: 12px 15px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #212121;
}

.project-hub-header h5 {
    margin: 0;
    font-size: 1.1rem;
}

/* Panel content */
.project-hub-content {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 20px;
}

/* Timeline styling */
.timeline {
    position: relative;
    margin: 20px 0;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background-color: #444;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-badge {
    position: absolute;
    left: -30px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #666;
    border: 2px solid #1a1a1a;
    top: 4px;
}

.timeline-content {
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.timeline-item:last-child .timeline-content {
    border-bottom: none;
}

/* Timeline item status colors */
.timeline-completed .timeline-badge {
    background-color: #198754;
}

.timeline-progress .timeline-badge {
    background-color: #0dcaf0;
}

.timeline-planned .timeline-badge {
    background-color: #6c757d;
}

.timeline-cancelled .timeline-badge {
    background-color: #dc3545;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .project-hub-panel {
        height: 85vh;
    }
    
    .project-hub-tab {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
}