

.search-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(44, 95, 93, 0.1);
    padding: 30px;
    position: relative;
    overflow: visible;
}

/* .search-card::before { */
/*     content: ''; */
/*     position: absolute; */
/*     top: 0; */
/*     left: 0; */
/*     right: 0; */
/*     height: 4px; */
/*     background: linear-gradient(90deg, #7dd3c0, #5dbea3, #49a3a3); */
/* } */

.search-header {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.main-input {
    flex: 2;
    padding: 15px 20px;
    border: 2px solid #e0f2f1;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.main-input:focus {
    border-color: #7dd3c0;
    box-shadow: 0 0 0 4px rgba(125, 211, 192, 0.1);
}

.quick-search-btn {
    flex: 1;
    background: linear-gradient(45deg, #7dd3c0, #5dbea3);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.quick-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(125, 211, 192, 0.3);
}

.filter-section {
    margin-bottom: 25px;
}

/* 트리 구조 드롭다운 스타일 */
.tree-dropdown {
    position: relative;
    width: 100%;
}

.dropdown-header {
    padding: 15px 20px;
    background: #f8fffe;
    border: 2px solid #e0f2f1;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    color: #2c5f5d;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dropdown-header:hover {
    border-color: #7dd3c0;
    background: #f0fffe;
}

.dropdown-header.active {
    border-color: #7dd3c0;
    background: #f0fffe;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    font-size: 14px;
    color: #7dd3c0;
}

.dropdown-header.active .dropdown-arrow {
    transform: rotate(180deg);
}

.tree-content {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #7dd3c0;
    border-top: none;
    border-radius: 0 0 12px 12px;
    z-index: 20;
    max-height: 350px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.tree-content.show {
    display: block;
    animation: slideDown 0.3s ease;
}

/* 트리 아이템 스타일 */
.tree-parent {
    border-bottom: 1px solid #f0f2f1;
}

.tree-parent:last-child {
    border-bottom: none;
}

.parent-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 600;
    color: #2c5f5d;
    background: #fafffe;
    border-bottom: 1px solid #e0f2f1;
    transition: all 0.2s ease;
}

.parent-item:hover {
    background: #f0fffe;
}

.parent-item.expanded {
    background: #e8f5e8;
}

.parent-checkbox {
    margin-right: 12px;
    transform: scale(1.1);
}

.parent-icon {
    font-size: 18px;
    margin-right: 10px;
}

.parent-toggle {
    margin-left: auto;
    transition: transform 0.2s ease;
    color: #7dd3c0;
    font-size: 12px;
}

.parent-item.expanded .parent-toggle {
    transform: rotate(90deg);
}

.children-container {
    display: none;
    background: #fcfffe;
}

.children-container.show {
    display: block;
    animation: slideDown 0.2s ease;
}

.child-item {
    display: flex;
    align-items: center;
    padding: 10px 20px 10px 60px;
    cursor: pointer;
    color: #666;
    transition: all 0.2s ease;
    position: relative;
}

.child-item:hover {
    background: #f0f8ff;
    color: #2c5f5d;
}

.child-item::before {
    content: '';
    position: absolute;
    left: 35px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e0f2f1;
}

.child-item::after {
    content: '';
    position: absolute;
    left: 35px;
    top: 50%;
    width: 15px;
    height: 2px;
    background: #e0f2f1;
}

.child-checkbox {
    margin-right: 10px;
}

.child-icon {
    margin-right: 8px;
    font-size: 14px;
}

/* 활성 필터 표시 */
.active-filters {
    background: linear-gradient(135deg, #f0f8ff 0%, #e8f5e8 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    border-left: 4px solid #7dd3c0;
    min-height: 60px;
}

.active-filters h4 {
    color: #2c5f5d;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    background: #7dd3c0;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    gap: 6px;
    transition: all 0.2s ease;
}

.filter-tag:hover {
    background: #5dbea3;
    transform: scale(1.05);
}

.filter-tag .remove-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    opacity: 0.8;
    margin-left: 4px;
}

.filter-tag .remove-btn:hover {
    opacity: 1;
}

.empty-filters {
    color: #a0bfbf;
    font-style: italic;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 해시태그 섹션 */
.hashtag-section {
    background: linear-gradient(135deg, #fce7f3 0%, #f3e8ff 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.hashtag-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #2c5f5d;
    font-weight: 600;
}

.hashtag-header span {
    font-size: 20px;
    margin-right: 8px;
}

.hashtag-input-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.hashtag-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0f2f1;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.hashtag-input:focus {
    border-color: #f4a6cd;
    box-shadow: 0 0 0 3px rgba(244, 166, 205, 0.1);
}

.hashtag-add-btn {
    padding: 12px 20px;
    background: #f4a6cd;
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hashtag-add-btn:hover {
    background: #e879b9;
    transform: translateY(-2px);
}

.hashtag-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hashtag-suggestion {
    padding: 6px 12px;
    background: rgba(244, 166, 205, 0.2);
    color: #2c5f5d;
    border-radius: 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(244, 166, 205, 0.3);
}

.hashtag-suggestion:hover {
    background: #f4a6cd;
    color: white;
    transform: scale(1.05);
}

/* 최종 검색 버튼 */
.final-search-btn {
    width: 100%;
    background: linear-gradient(45deg, #7dd3c0, #5dbea3);
    border: none;
    border-radius: 15px;
    padding: 18px;
    color: white;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(125, 211, 192, 0.3);
}

.final-search-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(125, 211, 192, 0.4);
}

.final-search-btn:active {
    transform: translateY(0);
}

/* 애니메이션 */
@keyframes slideDown {
    from { 
        opacity: 0; 
        transform: translateY(-10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* 반응형 */
@media (max-width: 768px) {
    .search-header {
        flex-direction: column;
    }
    
    .main-input, .quick-search-btn {
        flex: none;
    }
    
    .filter-tags {
        justify-content: center;
    }
}

/* 커스텀 스크롤바 */
.tree-content::-webkit-scrollbar {
    width: 6px;
}

.tree-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.tree-content::-webkit-scrollbar-thumb {
    background: #7dd3c0;
    border-radius: 3px;
}

.tree-content::-webkit-scrollbar-thumb:hover {
    background: #5dbea3;
}

/* =========================
   안 2: 드롭다운 구조형
   ========================= */

.design-2 .search-header {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.design-2 .main-input {
    flex: 2;
    padding: 12px 15px;
    border: 2px solid #e0f2f1;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
}

.design-2 .quick-search-btn {
    flex: 1;
    background: linear-gradient(45deg, #7dd3c0, #5dbea3);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.design-2 .filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.design-2 .filter-dropdown {
    position: relative;
}

.design-2 .dropdown-header {
    padding: 10px 15px;
    background: #f8fffe;
    border: 2px solid #e0f2f1;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #2c5f5d;
}

.design-2 .dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e0f2f1;
    border-radius: 8px;
    z-index: 10;
    display: none;
    max-height: 200px;
    overflow-y: auto;
}

.design-2 .dropdown-content.show {
    display: block;
    animation: slideDown 0.2s ease;
}

.design-2 .dropdown-item {
    padding: 8px 15px;
    cursor: pointer;
    font-size: 12px;
    border-bottom: 1px solid #f0f2f1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.design-2 .dropdown-item:hover {
    background: #f8fffe;
}

.design-2 .dropdown-item input[type="checkbox"] {
    margin: 0;
}

.design-2 .active-filters {
    background: #f0f8ff;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 15px;
    min-height: 40px;
    border-left: 4px solid #7dd3c0;
}

.design-2 .filter-tag {
    display: inline-block;
    background: #7dd3c0;
    color: white;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 10px;
    margin: 2px;
}

.design-2 .hashtag-bar {
    display: flex;
    align-items: center;
    background: #fce7f3;
    border-radius: 8px;
    padding: 8px;
    gap: 8px;
}

.design-2 .hashtag-quick-input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-size: 12px;
    color: #2c5f5d;
}

.design-2 .hashtag-suggestions {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.design-2 .hashtag-chip {
    padding: 3px 8px;
    background: #f4a6cd;
    color: white;
    border-radius: 10px;
    font-size: 10px;
    cursor: pointer;
}
/* Todo Style 시작 */



/*         * { */
/*             margin: 0; */
/*             padding: 0; */
/*             box-sizing: border-box; */
/*         } */

/*         body { */
/*             font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; */
/*             background: #f8f9fa; */
/*             padding: 20px; */
/*         } */

/*         .container { */
/*             max-width: 1400px; */
/*             margin: 0 auto; */
/*             display: grid; */
/*             grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); */
/*             gap: 30px; */
/*         } */

        .design-card {
            background: white;
            border-radius: 15px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.12);
            overflow: hidden;
        }

        .design-header {
            padding: 25px;
            text-align: center;
            color: white;
            position: relative;
        }

        .design1 .design-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }

        .design2 .design-header {
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
        }

        .design3 .design-header {
            background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
        }

        .design-header h2 {
            font-size: 1.3em;
            margin-bottom: 8px;
        }

        .design-header p {
            opacity: 0.9;
            font-size: 0.9em;
        }

        .modal-container {
            padding: 25px;
            min-height: 600px;
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 2px solid #e9ecef;
        }

        .modal-title {
            font-size: 1.2em;
            color: #343a40;
            font-weight: 600;
        }

        .close-btn {
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: #adb5bd;
            transition: color 0.2s;
        }

        .close-btn:hover {
            color: #6c757d;
        }


/*         .container { */
/*             max-width: 1400px; */
/*             margin: 0 auto; */
/*             display: grid; */
/*             grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); */
/*             gap: 30px; */
/*         } */
.todo-input:focus {
    outline: none;
    border-color: #667eea;
}

.todo-list {
    min-height: 400px;
    max-height: 500px;
    overflow-y: auto;
    border: 2px solid #f1f3f4;
    border-radius: 12px;
    padding: 15px;
    background: #fafbfc;
}
.todo-item {
    margin-bottom: 8px;
    border-radius: 8px;
    transition: all 0.2s;
}

.todo-item.parent {
    background: white;
    border: 2px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.todo-item.child {
    background: #f8f9fa;
    margin-left: 40px;
    margin-top: 4px;
    border-left: 3px solid #dee2e6;
}

        .todo-content {
            display: flex;
            align-items: center;
            padding: 12px 15px;
        }

        .todo-text {
            flex: 1;
            margin-left: 15px;
            font-size: 14px;
            cursor: pointer;
            transition: color 0.2s;
        }

        .todo-item.parent .todo-text {
            font-weight: 600;
            color: #343a40;
        }

        .todo-item.child .todo-text {
            color: #6c757d;
            font-size: 13px;
        }

        .progress-label {
            font-size: 11px;
            color: #6c757d;
            margin-left: 12px;
            min-width: 70px;
            text-align: right;
        }

        .expand-btn {
            background: none;
            border: none;
            font-size: 16px;
            cursor: pointer;
            margin-right: 8px;
            color: #6c757d;
            transition: transform 0.2s;
        }

        .expand-btn.expanded {
            transform: rotate(90deg);
        }

        /* 부모 체크박스 (진행바 스타일) */
        .parent-checkbox {
            width: 35px;
            height: 20px;
            border: 2px solid #dee2e6;
            border-radius: 10px;
            cursor: pointer;
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .parent-checkbox .progress-fill {
            position: absolute;
            left: 0;
            top: 0;
            height: 100%;
            transition: width 0.5s ease;
            border-radius: 8px;
        }

        /* 자식 체크박스 (기하학 스타일) */
        .child-checkbox {
            width: 20px;
            height: 20px;
            border: 2px solid #adb5bd;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            position: relative;
        }
        /* Design 1: 클래식 프로그레시브 */
        .design1 .parent-checkbox {
            border-color: #6f42c1;
        }

        .design1 .progress-fill {
            background: linear-gradient(90deg, #667eea, #764ba2);
        }

        .design1 .child-checkbox.status-incomplete {
            border-color: #e74c3c;
            border-radius: 3px;
        }
        .design1 .child-checkbox.status-incomplete::after {
            content: '';
            width: 8px;
            height: 8px;
            background: #e74c3c;
            border-radius: 1px;
        }

        .design1 .child-checkbox.status-paused {
            border-color: #f39c12;
            border-radius: 50%;
        }
        .design1 .child-checkbox.status-paused::after {
            content: '';
            width: 3px;
            height: 10px;
            background: #f39c12;
            margin-right: 2px;
            box-shadow: 3px 0 0 #f39c12;
        }

        .design1 .child-checkbox.status-waiting {
            border-color: #3498db;
            transform: rotate(45deg);
        }
        .design1 .child-checkbox.status-waiting::after {
            content: '';
            width: 6px;
            height: 6px;
            background: #3498db;
            transform: rotate(-45deg);
        }

        .design1 .child-checkbox.status-completed {
            border-color: #27ae60;
            border-radius: 3px;
            background: #27ae60;
        }
        .design1 .child-checkbox.status-completed::after {
            content: '✓';
            color: white;
            font-weight: bold;
            font-size: 12px;
        }

        .action-buttons {
            display: flex;
            gap: 10px;
            margin-top: 20px;
        }

        .add-btn {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            transition: transform 0.2s;
        }

        .add-btn:hover {
            transform: translateY(-2px);
        }

        .add-sub-btn {
            background: linear-gradient(135deg, #36d1dc, #5b86e5);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            transition: transform 0.2s;
        }

        .add-sub-btn:hover {
            transform: translateY(-2px);
        }

        .instructions {
            background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
            padding: 20px;
            border-radius: 12px;
            margin-top: 20px;
            font-size: 13px;
            color: #424242;
            border-left: 4px solid #667eea;
        }

        .instructions strong {
            display: block;
            margin-bottom: 8px;
            color: #1a237e;
        }

        .children-container {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
        }

        .children-container.expanded {
            max-height: 500px;
            display:block;
        }

        .selected-parent {
            background: linear-gradient(135deg, #e8f5e8, #f0f8ff) !important;
            border-color: #4caf50 !important;
        }
/* Todo Style 끝 */
