/* =====================
   Gantt Chart View Styles
   ===================== */

#gantt-container {
    display: none;
    padding: 16px;
    height: 100%;
    overflow: hidden;
}

.gantt-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--bg-secondary, #1a1a2e);
    border-radius: 12px;
    overflow: hidden;
}

.gantt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-tertiary, #16213e);
    border-bottom: 1px solid var(--border-color, #2a2a4a);
}

.gantt-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary, #eee);
}

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

.gantt-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    background: var(--accent-color, #4a5568);
    color: white;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.gantt-btn:hover {
    background: var(--accent-hover, #5a6578);
}

.gantt-btn.primary {
    background: var(--primary-color, #3b82f6);
}

.gantt-btn.primary:hover {
    background: var(--primary-hover, #2563eb);
}

/* Scrollable Timeline Area */
.gantt-timeline {
    flex: 1;
    overflow: auto;
    position: relative;
}

/* Timeline Header (Dates) */
.gantt-dates-header {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg-tertiary, #16213e);
    border-bottom: 1px solid var(--border-color, #2a2a4a);
    min-width: fit-content;
}

.gantt-date-cell {
    flex-shrink: 0;
    flex-grow: 0;
    width: 50px;
    padding: 8px 2px;
    text-align: center;
    border-right: 1px solid var(--border-color, #2a2a4a);
}

.gantt-date-cell.gantt-date-header {
    width: 300px;
    text-align: left;
    padding-left: 12px;
}

.gantt-date-cell.today {
    background: rgba(59, 130, 246, 0.2);
}

.gantt-date-weekday {
    font-size: 0.75rem;
    color: var(--text-secondary, #888);
}

.gantt-date-day {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary, #eee);
}

.gantt-date-cell.today .gantt-date-day {
    color: var(--primary-color, #3b82f6);
}

/* Task Rows */
.gantt-tasks {
    position: relative;
}

.gantt-task-row {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color, #2a2a4a);
    min-height: 44px;
    transition: background 0.15s;
}

.gantt-task-row:hover {
    background: var(--bg-hover, #252540);
}

.gantt-task-name {
    flex-shrink: 0;
    flex-grow: 0;
    width: 300px;
    padding: 8px 12px;
    font-size: 0.85rem;
    color: var(--text-primary, #eee);
    border-right: 1px solid var(--border-color, #2a2a4a);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gantt-task-name.overdue {
    color: #ef4444;
}

.gantt-task-name.today {
    color: #f59e0b;
}

.gantt-task-name.completed {
    text-decoration: line-through;
    opacity: 0.5;
}

.gantt-timeline-cells {
    display: flex;
    position: relative;
    min-width: fit-content;
}

.gantt-timeline-cell {
    flex-shrink: 0;
    flex-grow: 0;
    width: 50px;
    height: 100%;
    min-height: 44px;
    border-right: 1px solid var(--border-color, #2a2a4a);
    position: relative;
    z-index: 1;
}

.gantt-timeline-cell.today {
    background: rgba(59, 130, 246, 0.05);
}

/* Task Bar */
.gantt-task-bar {
    position: absolute;
    height: 28px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding: 0 8px;
    font-size: 0.75rem;
    color: white;
    cursor: grab;
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 2;
    pointer-events: auto;
}

.gantt-task-bar:hover {
    transform: translateY(-50%) scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 5;
}

.gantt-task-bar:active {
    cursor: grabbing;
}

.gantt-task-bar.dragging {
    opacity: 0.7;
    transform: translateY(-50%) scale(1.05);
    z-index: 100;
    /* pointer-events: none 제거 - drop 이벤트를 위해 필요함 */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    cursor: grabbing;
}

/* 드롭 존 호버 효과 */
.gantt-timeline-cell.drag-over {
    background: rgba(59, 130, 246, 0.3) !important;
    box-shadow: inset 0 0 0 2px rgba(59, 130, 246, 0.8), inset 0 0 10px rgba(59, 130, 246, 0.5);
    cursor: copy;
    z-index: 150; /* 드래그된 바(z-index: 100)보다 높게 */
}

/* Task Bar Colors */
.gantt-task-bar.normal {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.gantt-task-bar.overdue {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.gantt-task-bar.today {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.gantt-task-bar.tomorrow {
    background: linear-gradient(135deg, #10b981, #059669);
}

.gantt-task-bar.completed {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    opacity: 0.6;
}

/* Task Bar Tags */
.gantt-task-bar-tag {
    display: inline-block;
    padding: 2px 4px;
    margin-right: 4px;
    border-radius: 3px;
    font-size: 0.65rem;
    background: rgba(255, 255, 255, 0.2);
}

/* Empty State */
.gantt-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-secondary, #888);
}

.gantt-empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.gantt-empty-text {
    font-size: 1rem;
}

/* Legend */
.gantt-legend {
    display: flex;
    gap: 16px;
    padding: 8px 16px;
    background: var(--bg-tertiary, #16213e);
    border-top: 1px solid var(--border-color, #2a2a4a);
    flex-wrap: wrap;
}

.gantt-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary, #aaa);
}

.gantt-legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.gantt-legend-color.overdue {
    background: #ef4444;
}

.gantt-legend-color.today {
    background: #f59e0b;
}

.gantt-legend-color.tomorrow {
    background: #10b981;
}

.gantt-legend-color.normal {
    background: #3b82f6;
}

.gantt-legend-color.completed {
    background: #6b7280;
}

/* Current Time Indicator */
.gantt-current-time {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ef4444;
    z-index: 5;
    pointer-events: none;
}

.gantt-current-time::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
}

/* Filter Bar in Gantt */
.gantt-filter-bar {
    display: flex;
    gap: 12px;
    padding: 8px 16px;
    background: var(--bg-tertiary, #16213e);
    border-bottom: 1px solid var(--border-color, #2a2a4a);
    align-items: center;
}

.gantt-filter-label {
    font-size: 0.8rem;
    color: var(--text-secondary, #aaa);
}

.gantt-filter-select {
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid var(--border-color, #2a2a4a);
    background: var(--bg-secondary, #1a1a2e);
    color: var(--text-primary, #eee);
    font-size: 0.8rem;
}

.gantt-task-count {
    padding: 4px 8px;
    border-radius: 4px;
    background: var(--accent-color, #4a5568);
    color: white;
    font-size: 0.75rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .gantt-task-name {
        width: 150px;
        font-size: 0.75rem;
    }

    .gantt-date-cell {
        width: 40px;
        padding: 4px 1px;
    }

    .gantt-date-cell.gantt-date-header {
        width: 150px;
    }

    .gantt-timeline-cell {
        width: 40px;
    }

    .gantt-task-bar {
        height: 24px;
        font-size: 0.7rem;
        padding: 0 4px;
    }

    .gantt-legend {
        font-size: 0.7rem;
    }
}

/* =====================
   Gantt Task Modal
   ===================== */

.gantt-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    animation: ganttFadeIn 0.15s ease;
}

@keyframes ganttFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.gantt-modal {
    background: var(--bg-secondary, #1a1a2e);
    border-radius: 16px;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: ganttSlideUp 0.2s ease;
}

@keyframes ganttSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.gantt-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color, #2a2a4a);
}

.gantt-modal-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary, #eee);
}

.gantt-modal-close {
    background: none;
    border: none;
    color: var(--text-secondary, #888);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.15s;
}

.gantt-modal-close:hover {
    background: var(--bg-hover, #2a2a4a);
    color: var(--text-primary, #eee);
}

.gantt-modal-body {
    padding: 20px;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
}

/* Task Info */
.gantt-task-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding: 16px;
    background: var(--bg-tertiary, #16213e);
    border-radius: 12px;
    margin-bottom: 20px;
}

.gantt-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gantt-info-item.full {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.gantt-info-label {
    font-size: 0.75rem;
    color: var(--text-secondary, #888);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gantt-info-value {
    font-size: 0.95rem;
    color: var(--text-primary, #eee);
}

.gantt-info-value.completed {
    color: #10b981;
    text-decoration: line-through;
}

/* Quick Dates */
.gantt-quick-dates {
    margin-bottom: 20px;
}

.gantt-section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary, #eee);
    margin-bottom: 12px;
}

.gantt-date-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.gantt-date-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    background: var(--bg-tertiary, #16213e);
    border: 1px solid var(--border-color, #2a2a4a);
    border-radius: 10px;
    color: var(--text-primary, #eee);
    cursor: pointer;
    transition: all 0.15s;
}

.gantt-date-btn:hover {
    background: var(--accent-color, #3b82f6);
    border-color: var(--accent-color, #3b82f6);
    transform: translateY(-2px);
}

.gantt-date-emoji {
    font-size: 1.2rem;
}

.gantt-date-label {
    font-size: 0.75rem;
    color: var(--text-secondary, #aaa);
}

.gantt-date-value {
    font-size: 0.8rem;
    font-weight: 500;
}

/* Actions */
.gantt-modal-actions {
    display: flex;
    gap: 12px;
}

.gantt-action-btn {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.gantt-action-btn.complete {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.gantt-action-btn.complete:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.gantt-action-btn.edit {
    background: var(--bg-tertiary, #16213e);
    color: var(--text-primary, #eee);
    border: 1px solid var(--border-color, #2a2a4a);
}

.gantt-action-btn.edit:hover {
    background: var(--bg-hover, #2a2a4a);
    border-color: var(--accent-color, #3b82f6);
}

/* Mobile Modal */
@media (max-width: 768px) {
    .gantt-modal {
        width: 95%;
        max-width: none;
        border-radius: 16px 16px 0 0;
        margin: auto;
        position: fixed;
        bottom: 0;
    }

    .gantt-date-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .gantt-modal-actions {
        flex-direction: column;
    }
}

/* =====================
   Drag Tooltip
   ===================== */

.gantt-drag-tooltip {
    position: fixed;
    padding: 8px 14px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    white-space: nowrap;
}

/* Cell Date Label (shown during drag) */
.gantt-cell-date-label {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(59, 130, 246, 0.95);
    color: white;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

/* =====================
   Gantt Dependencies
   ===================== */

/* Dependency SVG Overlay */
.gantt-dependency-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50; /* Task 바(z-index: 2-5)보다 높게 */
    overflow: visible;
}

/* Dependency Arrow */
.dependency-arrow {
    stroke: #4A90E2;
    stroke-width: 2;
    fill: none;
    opacity: 0.8;
    transition: stroke-width 0.15s, opacity 0.15s;
}

.dependency-arrow:hover {
    stroke-width: 3;
    opacity: 1;
}

.dependency-arrow.critical {
    stroke: #E74C3C;
    stroke-width: 2.5;
    opacity: 0.9;
}

.dependency-arrow.critical:hover {
    stroke-width: 3.5;
    opacity: 1;
}

/* Critical Path Task Bar */
.gantt-task-bar.critical {
    box-shadow: 0 0 0 2px #E74C3C, 0 4px 12px rgba(231, 76, 60, 0.3);
}

.gantt-task-name.critical {
    color: #E74C3C;
    font-weight: 600;
}

/* Critical Path Legend */
.gantt-legend-color.critical {
    background: linear-gradient(135deg, #E74C3C, #C0392B);
    box-shadow: 0 0 0 2px #E74C3C;
}

/* =====================
   Dependency Section in Modal
   ===================== */

.gantt-dep-section {
    border-top: 1px solid var(--border-color, #2a2a4a);
    padding: 16px 0;
    margin-top: 16px;
}

.gantt-dep-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.gantt-dep-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary, #eee);
    display: flex;
    align-items: center;
    gap: 6px;
}

.gantt-dep-add-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--accent-color, #3b82f6);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s;
}

.gantt-dep-add-btn:hover {
    background: var(--primary-hover, #2563eb);
    transform: translateY(-1px);
}

.gantt-dep-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 150px;
    overflow-y: auto;
}

.gantt-dep-empty {
    padding: 16px;
    text-align: center;
    color: var(--text-secondary, #888);
    font-size: 0.85rem;
    background: var(--bg-tertiary, #16213e);
    border-radius: 8px;
}

.gantt-dep-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: var(--bg-tertiary, #16213e);
    border-radius: 8px;
    border-left: 3px solid #4A90E2;
}

.gantt-dep-item.critical {
    border-left-color: #E74C3C;
    background: rgba(231, 76, 60, 0.1);
}

.gantt-dep-item-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.gantt-dep-arrow {
    color: #4A90E2;
    font-size: 0.85rem;
}

.gantt-dep-item.critical .gantt-dep-arrow {
    color: #E74C3C;
}

.gantt-dep-task-title {
    font-size: 0.85rem;
    color: var(--text-primary, #eee);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

.gantt-dep-task-date {
    font-size: 0.75rem;
    color: var(--text-secondary, #888);
}

.gantt-dep-remove-btn {
    background: none;
    border: none;
    color: var(--text-secondary, #888);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.15s;
}

.gantt-dep-remove-btn:hover {
    color: #E74C3C;
    background: rgba(231, 76, 60, 0.1);
}

/* =====================
   Dependency Modal
   ===================== */

.gantt-dep-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1002;
    animation: ganttFadeIn 0.15s ease;
}

.gantt-dep-modal {
    background: var(--bg-secondary, #1a1a2e);
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: ganttSlideUp 0.2s ease;
}

.gantt-dep-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color, #2a2a4a);
}

.gantt-dep-modal-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary, #eee);
}

.gantt-dep-modal-close {
    background: none;
    border: none;
    color: var(--text-secondary, #888);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.15s;
}

.gantt-dep-modal-close:hover {
    background: var(--bg-hover, #2a2a4a);
    color: var(--text-primary, #eee);
}

.gantt-dep-modal-body {
    padding: 20px;
}

.gantt-dep-select-group {
    margin-bottom: 16px;
}

.gantt-dep-select-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary, #888);
    margin-bottom: 8px;
}

.gantt-dep-select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color, #2a2a4a);
    background: var(--bg-tertiary, #16213e);
    color: var(--text-primary, #eee);
    font-size: 0.9rem;
}

.gantt-dep-select:focus {
    outline: none;
    border-color: var(--accent-color, #3b82f6);
}

.gantt-dep-type-group {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.gantt-dep-type-radio {
    flex: 1;
    position: relative;
}

.gantt-dep-type-radio input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.gantt-dep-type-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 8px;
    background: var(--bg-tertiary, #16213e);
    border: 1px solid var(--border-color, #2a2a4a);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
}

.gantt-dep-type-radio input:checked + .gantt-dep-type-label {
    background: var(--accent-color, #3b82f6);
    border-color: var(--accent-color, #3b82f6);
}

.gantt-dep-type-code {
    font-size: 0.8rem;
    font-weight: 600;
}

.gantt-dep-type-name {
    font-size: 0.7rem;
    color: var(--text-secondary, #888);
}

.gantt-dep-modal-actions {
    display: flex;
    gap: 12px;
}

.gantt-dep-cancel-btn {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border-color, #2a2a4a);
    border-radius: 8px;
    background: var(--bg-tertiary, #16213e);
    color: var(--text-primary, #eee);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.15s;
}

.gantt-dep-cancel-btn:hover {
    background: var(--bg-hover, #2a2a4a);
}

.gantt-dep-save-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: var(--accent-color, #3b82f6);
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.gantt-dep-save-btn:hover {
    background: var(--primary-hover, #2563eb);
}

.gantt-dep-save-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Task Option in Select */
.gantt-dep-task-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gantt-dep-task-option-date {
    font-size: 0.75rem;
    color: var(--text-secondary, #888);
}

/* =====================
   Successor Notification
   ===================== */

.gantt-dep-notification {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 10px;
    margin-top: 16px;
}

.gantt-dep-notification-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.gantt-dep-notification-content {
    flex: 1;
}

.gantt-dep-notification-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary, #eee);
    margin-bottom: 4px;
}

.gantt-dep-notification-tasks {
    font-size: 0.8rem;
    color: var(--text-secondary, #aaa);
}

.gantt-dep-notification-task {
    display: inline-block;
    margin-right: 8px;
    color: var(--accent-color, #3b82f6);
}

/* =====================
   Mobile Responsive for Dependencies
   ===================== */

@media (max-width: 768px) {
    .gantt-dep-modal {
        width: 95%;
        max-width: none;
        border-radius: 16px 16px 0 0;
        margin: auto;
        position: fixed;
        bottom: 0;
    }

    .gantt-dep-type-group {
        flex-wrap: wrap;
    }

    .gantt-dep-type-radio {
        min-width: calc(50% - 4px);
    }

    .gantt-dependency-svg {
        display: none; /* 모바일에서는 화살표 숨김 */
    }

    /* 모바일에서는 텍스트로 종속성 표시 */
    .gantt-task-name::after {
        content: attr(data-deps);
        display: block;
        font-size: 0.7rem;
        color: var(--text-secondary, #888);
        margin-top: 2px;
    }
}
