/* Advanced Gantt Chart Styles */

.gantt-placeholder {
    width: 100%;
    height: 100%;
    min-height: 600px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}

.gantt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.gantt-header h3 {
    margin: 0;
    color: #333;
    font-weight: 600;
}

.gantt-controls {
    display: flex;
    gap: 10px;
}

.gantt-controls .btn {
    display: flex;
    align-items: center;
    gap: 5px;
}

.gantt-content {
    display: flex;
    height: calc(100% - 70px);
}

.gantt-grid {
    flex: 0 0 50%;
    border-right: 1px solid #eee;
    overflow: auto;
}

.gantt-grid table {
    margin: 0;
    font-size: 13px;
}

.gantt-grid th {
    background: #f8f9fa;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
    padding: 12px 8px;
    white-space: nowrap;
}

.gantt-grid td {
    padding: 8px;
    vertical-align: middle;
    border-bottom: 1px solid #eee;
}

.gantt-timeline {
    flex: 1;
    background: #fafafa;
    overflow: auto;
}

.timeline-placeholder {
    padding: 20px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.timeline-placeholder p {
    margin-bottom: 10px;
    color: #666;
}

.timeline-placeholder ol {
    text-align: left;
    max-width: 400px;
    margin: 20px 0;
}

.timeline-placeholder ol li {
    margin-bottom: 8px;
    color: #555;
}

.data-preview {
    margin-top: 30px;
    text-align: left;
    max-width: 600px;
    width: 100%;
}

.data-preview h5 {
    margin-bottom: 10px;
    color: #333;
}

.data-preview pre {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    font-size: 11px;
    max-height: 300px;
    overflow: auto;
    text-align: left;
}

/* Progress bar styling */
.progress {
    background-color: #e9ecef;
    border-radius: 0.25rem;
}

.progress-bar {
    background-color: #007bff;
    color: white;
    font-size: 11px;
    line-height: 20px;
    text-align: center;
    transition: width 0.3s ease;
}

/* Responsive design */
@media (max-width: 768px) {
    .gantt-content {
        flex-direction: column;
    }
    
    .gantt-grid {
        flex: none;
        height: 300px;
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    
    .gantt-timeline {
        flex: 1;
        min-height: 300px;
    }
    
    .gantt-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .gantt-controls {
        justify-content: center;
    }
}

/* Loading state */
.gantt-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    color: #666;
}

.gantt-loading .spinner-border {
    margin-right: 10px;
}

/* Error state */
.gantt-error {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 400px;
    color: #dc3545;
    text-align: center;
}

.gantt-error .fa-exclamation-triangle {
    font-size: 48px;
    margin-bottom: 15px;
}

/* Task status indicators */
.task-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.task-status.open {
    background-color: #e3f2fd;
    color: #1976d2;
}

.task-status.working {
    background-color: #fff3e0;
    color: #f57c00;
}

.task-status.completed {
    background-color: #e8f5e8;
    color: #388e3c;
}

.task-status.cancelled {
    background-color: #ffebee;
    color: #d32f2f;
}

/* Priority indicators */
.task-priority {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 5px;
}

.task-priority.low {
    background-color: #4caf50;
}

.task-priority.medium {
    background-color: #ff9800;
}

.task-priority.high {
    background-color: #f44336;
}

.task-priority.urgent {
    background-color: #9c27b0;
}

/* Bryntum Gantt overrides (when actual library is loaded) */
.b-gantt {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.b-gantt .b-grid-header {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.b-gantt .b-grid-row {
    border-bottom: 1px solid #eee;
}

.b-gantt .b-grid-row:hover {
    background-color: #f8f9fa;
}

.b-gantt .b-task-bar {
    border-radius: 3px;
}

.b-gantt .b-milestone-diamond {
    border-radius: 0;
    transform: rotate(45deg);
}