/* Portfolio Gantt Pro - Frontend Styles */
.pgp-gantt-wrapper {
    margin: 20px 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.pgp-gantt-toolbar {
    padding: 10px 15px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    display: flex;
    gap: 10px;
}

.pgp-view-btn {
    padding: 6px 16px;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.pgp-view-btn:hover {
    background: #e5e5e5;
}

.pgp-view-btn.active {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.pgp-gantt-container {
    width: 100%;
}

/* DHTMLX Customization */
.gantt_task_line {
    border-radius: 3px;
}

.gantt_task_line.gantt_dependent_task {
    opacity: 0.8;
}

/* Milestone (project) styling */
.gantt_task_line.gantt_project {
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Task styling */
.gantt_task_line.gantt_task_type_task {
    opacity: 0.85;
}

/* Logbook marker (milestone type) */
.gantt_task_line.gantt_milestone {
    transform: rotate(45deg);
    border-radius: 2px;
}

.gantt_task_line.gantt_milestone .gantt_task_content {
    transform: rotate(-45deg);
    font-size: 11px;
}

/* Status-based styling */
.gantt_task_progress {
    background: rgba(255,255,255,0.3);
}

/* Tooltip */
.gantt_tooltip {
    font-size: 13px;
    line-height: 1.5;
    max-width: 300px;
}

/* Responsive */
@media (max-width: 768px) {
    .pgp-gantt-container {
        height: 400px !important;
    }
    
    .pgp-gantt-toolbar {
        flex-wrap: wrap;
    }
}