/* Gantt Chart Styles */
.gantt-container {
    width: 100%;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.gantt-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.gantt-controls button {
    padding: 10px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.gantt-controls .cta {
    background: #3498db;
    color: white;
}

.gantt-controls .cta:hover {
    background: #2980b9;
}

.gantt-controls .secondary {
    background: #ecf0f1;
    color: #34495e;
}

.gantt-controls .secondary:hover {
    background: #d5dbdb;
}

.gantt-header {
    display: grid;
    grid-template-columns: 250px 1fr;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px 5px 0 0;
}

.task-header {
    padding: 15px;
    font-weight: bold;
    border-right: 1px solid #dee2e6;
    background: #e9ecef;
}

.timeline-header {
    display: flex;
    overflow-x: auto;
}

.timeline-day {
    min-width: 40px;
    padding: 15px 5px;
    text-align: center;
    border-right: 1px solid #dee2e6;
    font-size: 12px;
    background: #f8f9fa;
}

.timeline-day.weekend {
    background: #ffe6e6;
}

.gantt-body {
    border: 1px solid #dee2e6;
    border-top: none;
    max-height: 400px;
    overflow-y: auto;
}

.gantt-row {
    display: grid;
    grid-template-columns: 250px 1fr;
    border-bottom: 1px solid #dee2e6;
    min-height: 50px;
}

.task-info {
    padding: 10px 15px;
    border-right: 1px solid #dee2e6;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
}

.task-name {
    font-weight: 500;
    margin-bottom: 5px;
}

.task-dates {
    font-size: 12px;
    color: #6c757d;
}

.task-timeline {
    position: relative;
    display: flex;
    padding: 10px 0;
    overflow-x: auto;
}

.task-bar {
    height: 30px;
    border-radius: 15px;
    position: relative;
    display: flex;
    align-items: center;
    color: white;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 2px;
}

.task-bar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.task-bar-progress {
    height: 100%;
    background: rgba(255,255,255,0.3);
    border-radius: 15px;
    position: absolute;
    left: 0;
    top: 0;
}

.task-bar-text {
    padding: 0 10px;
    z-index: 1;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.task-actions {
    margin-left: 10px;
    display: flex;
    gap: 5px;
}

.task-actions button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    color: #6c757d;
    transition: all 0.3s ease;
}

.task-actions button:hover {
    background: #f8f9fa;
    color: #495057;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-content h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #34495e;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 30px;
}

.modal-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.modal-actions .cta {
    background: #3498db;
    color: white;
}

.modal-actions .cta:hover {
    background: #2980b9;
}

.modal-actions .secondary {
    background: #ecf0f1;
    color: #34495e;
}

.modal-actions .secondary:hover {
    background: #d5dbdb;
}

/* Empty State */
.gantt-empty {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.gantt-empty h3 {
    margin-bottom: 10px;
    color: #495057;
}

/* Responsive */
@media (max-width: 768px) {
    .gantt-header,
    .gantt-row {
        grid-template-columns: 200px 1fr;
    }
    
    .timeline-day {
        min-width: 30px;
        padding: 10px 3px;
    }
    
    .task-info {
        padding: 8px 10px;
    }
    
    .modal-content {
        margin: 20px;
        padding: 20px;
    }
    
    .gantt-controls {
        flex-direction: column;
    }
    
    .gantt-controls button {
        width: 100%;
    }
}
