/* =====================
   마인드맵 뷰 스타일 (개선됨)
   ===================== */

#mindmap-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* 컨트롤 바 - 현대적 디자인 */
#mindmap-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    gap: 16px;
    flex-wrap: wrap;
    box-shadow: 0 2px 12px rgba(17, 153, 142, 0.2);
}

#mindmap-controls .control-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

#mindmap-controls label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.3px;
}

#mindmap-controls select {
    padding: 8px 16px;
    font-size: 13px;
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
}

#mindmap-controls select:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

#mindmap-controls select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

#mindmap-controls select option {
    background: #fff;
    color: #333;
}

.control-buttons {
    display: flex;
    gap: 8px;
}

.control-buttons button {
    width: 38px;
    height: 38px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    color: #fff;
}

.control-buttons button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.control-buttons button:active {
    transform: scale(0.95);
}

/* 마인드맵 캔버스 - 전체 화면 사용 */
#mindmap-canvas {
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: calc(100vh - 200px);
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    position: relative;
    overflow: hidden;
}

/* vis-network 스타일 오버라이드 */
#mindmap-canvas .vis-network {
    outline: none;
}

#mindmap-canvas .vis-network canvas {
    outline: none;
}

/* 로딩 메시지 */
#mindmap-canvas .loading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: #11998e;
    font-size: 15px;
    font-weight: 500;
    gap: 12px;
}

#mindmap-canvas .loading::before {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid #11998e;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 그룹핑별 색상 (그라데이션 효과) */
.branch-urgent {
    background: linear-gradient(135deg, #ffcdd2 0%, #ef9a9a 100%) !important;
    border-color: #f44336 !important;
}

.branch-important {
    background: linear-gradient(135deg, #bbdefb 0%, #90caf9 100%) !important;
    border-color: #2196f3 !important;
}

.branch-completed {
    background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 100%) !important;
    border-color: #4caf50 !important;
}

.branch-pending {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%) !important;
    border-color: #ff9800 !important;
}

.branch-overdue {
    background: linear-gradient(135deg, #ffebee 0%, #ef5350 100%) !important;
    border-color: #e53935 !important;
}

.branch-today {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%) !important;
    border-color: #ffc107 !important;
}

.branch-week {
    background: linear-gradient(135deg, #e3f2fd 0%, #90caf9 100%) !important;
    border-color: #42a5f5 !important;
}

.branch-later {
    background: linear-gradient(135deg, #f3e5f5 0%, #ce93d8 100%) !important;
    border-color: #ab47bc !important;
}

.branch-nodue {
    background: linear-gradient(135deg, #eceff1 0%, #b0bec5 100%) !important;
    border-color: #78909c !important;
}

/* Task List 필터 드롭다운 */
.tasklist-filter-group {
    position: relative;
}

.tasklist-filter-dropdown {
    position: relative;
}

#tasklist-filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 13px;
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

#tasklist-filter-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.2s;
}

.tasklist-filter-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 280px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    padding: 12px;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-menu-header {
    display: flex;
    gap: 8px;
    padding: 8px;
    margin-bottom: 8px;
}

.filter-menu-btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 12px;
    border: none;
    border-radius: 8px;
    background: #f5f5f5;
    cursor: pointer;
    transition: all 0.15s;
    font-weight: 500;
    color: #555;
}

.filter-menu-btn:hover {
    background: #e0e0e0;
}

.tasklist-checkboxes {
    max-height: 280px;
    overflow-y: auto;
    padding: 4px;
}

.tasklist-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
    border-radius: 10px;
}

.tasklist-checkbox-label:hover {
    background: #f5f5f5;
}

.tasklist-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #11998e;
}

.tasklist-checkbox-label span {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* 스크롤바 스타일링 */
.tasklist-checkboxes::-webkit-scrollbar {
    width: 6px;
}

.tasklist-checkboxes::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.tasklist-checkboxes::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.tasklist-checkboxes::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}
