/* Task List Sidebar Styles */

.task-list-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
}

.task-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
}

.task-list-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.task-list-title {
    color: var(--text-menu);
}

.task-list-add-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-menu);
    width: 26px;
    height: 26px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.task-list-add-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary, #e2e8f0);
    border-color: rgba(255, 255, 255, 0.2);
}

.task-list-scopes {
    flex: 1;
    overflow-y: auto;
    padding: 12px 8px;
}

.task-scope-item {
    margin-bottom: 8px;
}

.task-scope-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    padding: 3px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
    background: rgba(0, 0, 0, 0.03);
}

.task-scope-header:hover {
    background: rgba(0, 0, 0, 0.06);
}

.task-scope-header.expanded {
    background: rgba(51, 122, 234, 0.15);
}

.theme-unicorn .task-scope-header {
    background: rgba(255, 255, 255, 0.05);
}

.theme-unicorn .lib-header:hover {
    background: rgba(255, 255, 255, 0.1);
}

.theme-unicorn .task-scope-header.expanded {
    background: rgba(255, 255, 255, 0.15);
}

.task-scope-icon {
    font-size: 0.65rem;
    color: var(--text-secondary);
    width: 14px;
    transition: transform 0.2s;
}

.theme-unicorn .task-scope-icon {
    color: rgba(255, 255, 255, 0.6);
}




.task-scope-arrow.expanded {
    transform: rotate(90deg);
}

.task-scope-name {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.theme-unicorn .task-scope-name {
    color: white;
}

.task-scope-actions {
    display: flex;
    gap: 2px;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.task-scope-header:hover .task-scope-actions {
    opacity: 1;
}

.task-action-btn {
    background: transparent;
    border: none;
    color: var(--border);
    width: 22px;
    height: 22px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.task-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    /* color: var(--text-primary, #e2e8f0); */
}

.task-delete-btn:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.task-project-list {
    padding-left: 16px;
}

.task-project-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
    margin-bottom: 2px;
}

.task-project-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.task-project-item.active {
    background: rgba(51, 122, 234, 0.12);
}

.theme-unicorn .task-project-item:hover {
    background: linear-gradient(79deg, var(--accent), 5%, transparent);
}

.theme-unicorn .task-project-item.active {
    background: linear-gradient(79deg, var(--accent), 1%, transparent);
    border-left: 2px solid var(--accent);
}


.task-project-icon {
    font-size: 12px;
    flex-shrink: 0;
}

.task-project-name {
    flex: 1;
    font-size: 0.8rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.theme-unicorn .task-project-name {
    color: rgba(255, 255, 255, 0.9);
}


.task-project-item:hover .task-delete-btn {
    opacity: 1;
}

.task-project-item .task-delete-btn {
    opacity: 0;
}

.task-list-empty {
    padding: 24px 16px;
    text-align: center;
    color: var(--text-secondary, #94a3b8);
    font-size: 12px;
    opacity: 0.7;
}


/* .theme-unicorn .task-project-item.active .task-project-name {
    color: var(--unicorn-color);
} */
/* Inline Editing */
.inline-dropdown-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
}

.inline-dropdown,
.inline-popup {
    position: fixed;
    min-width: 150px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    overflow: hidden;
    padding: 2px;
}

.inline-dropdown.dropdown-up,
.inline-popup.dropdown-up {
    transform: translateY(calc(-100% - 8px));
}

.inline-dropdown-item {
    padding: 6px 10px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    display: block;
    color: var(--text-primary);
}

.inline-dropdown-item:hover {
    background: var(--bg-hover);
}

.table-cell-type {
    position: relative;
    width: 32px;
    display: flex;
    justify-content: center;
    cursor: pointer;
}

.table-cell-type:hover {
    background: var(--bg-hover);
    border-radius: 4px;
}

.editable-cell-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.task-item {
    position: relative;
    cursor: pointer;
}

.task-item:hover {
    background: var(--bg-hover);
}

/* Specific overrides */
.task-item.task-badge:hover,
.task-item.task-assignee:hover,
.task-item.task-due:hover {
    opacity: 0.8;
}