/* Asana-Style Task Table */

.task-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
}

.task-table thead th {
    position: sticky;
    top: 0;
    background: var(--content-bg);
    padding: 16px 20px 12px 20px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.8px;
    border-bottom: 1px solid var(--border-color);
    z-index: 10;
}

.task-table tbody {
    background: transparent;
}

.task-table thead th:first-child {
    width: 35%;
}

.task-table thead th:nth-child(2),
.task-table thead th:nth-child(3),
.task-table thead th:nth-child(4) {
    width: 15%;
}

.task-table thead th:nth-child(5),
.task-table thead th:nth-child(6),
.task-table thead th:nth-child(7) {
    width: 10%;
}

/* Section Header Rows */
.section-header-row {
    cursor: pointer;
    transition: background 0.15s;
}

.section-header-row:hover {
    background: rgba(255,255,255,0.03);
}

.section-header-row td {
    padding: 10px 20px !important;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
}

.section-header-row td > div {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.section-title {
    flex: 1;
}

.section-count {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    background: rgba(255,255,255,0.08);
    color: var(--text-secondary);
    margin-left: 8px;
}

.section-arrow {
    font-size: 10px;
    color: var(--text-secondary);
    transition: transform 0.2s;
    margin-left: auto;
}

.section-arrow.expanded {
    transform: rotate(90deg);
}

/* Task Rows */
.task-table tbody tr.task-row {
    cursor: pointer;
    transition: background 0.15s;
}

.task-table tbody tr.task-row:hover {
    background: rgba(255,255,255,0.03);
}

.task-table tbody tr.task-row td {
    padding: 10px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    vertical-align: middle;
    font-size: 13px;
}

.task-name-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 0 !important;
}

.add-task-row {
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.15s;
}

.add-task-row:hover {
    background: rgba(255,255,255,0.03);
    opacity: 1;
}

.add-task-row td {
    padding: 10px 20px !important;
    padding-left: 52px !important;
    border-bottom: 1px solid rgba(255,255,255,0.02) !important;
    color: var(--text-secondary);
    font-size: 13px;
    height: 40px;
}

.add-task-row i {
    margin-right: 8px;
    font-size: 12px;
}

/* Task Columns */
.task-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
}

.task-checkbox i {
    font-size: 18px;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.task-checkbox:hover i {
    color: var(--text-primary);
}

.task-checkbox .fa-check-circle {
    color: #7de2d1 !important;
}

.task-title-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.task-name {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 400;
}

.task-desc {
    font-size: 12px;
    color: var(--text-secondary);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 500px;
}

.task-assignee,
.task-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-primary);
}

.task-info i {
    color: var(--text-secondary);
    font-size: 12px;
}

.task-empty {
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
}

.task-empty:hover {
    background: rgba(255,255,255,0.05);
}

.task-empty i {
    font-size: 16px;
}

/* Task Badges */
.task-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    text-transform: capitalize;
    border: none;
}

/* Status Colors */
.task-badge.badge-pending {
    background: rgba(244, 185, 66, 0.15);
    color: #f4b942;
    border-color: rgba(244, 185, 66, 0.3);
}

.task-badge.badge-in_progress {
    background: rgba(106, 148, 255, 0.15);
    color: #6a94ff;
    border-color: rgba(106, 148, 255, 0.3);
}

.task-badge.badge-in-progress {
    background: rgba(106, 148, 255, 0.15);
    color: #6a94ff;
    border-color: rgba(106, 148, 255, 0.3);
}

.task-badge.badge-in_review {
    background: rgba(160, 106, 255, 0.15);
    color: #a06aff;
    border-color: rgba(160, 106, 255, 0.3);
}

.task-badge.badge-completed {
    background: rgba(125, 226, 209, 0.15);
    color: #7de2d1;
    border-color: rgba(125, 226, 209, 0.3);
}

.task-badge.badge-cancelled {
    background: rgba(154, 160, 166, 0.15);
    color: #9aa0a6;
    border-color: rgba(154, 160, 166, 0.3);
}

/* Priority Colors */
.task-badge.badge-urgent {
    background: rgba(240, 106, 106, 0.15);
    color: #f06a6a;
    border-color: rgba(240, 106, 106, 0.3);
}

.task-badge.badge-high {
    background: rgba(255, 165, 76, 0.15);
    color: #ffa54c;
    border-color: rgba(255, 165, 76, 0.3);
}

.task-badge.badge-medium {
    background: rgba(244, 185, 66, 0.15);
    color: #f4b942;
    border-color: rgba(244, 185, 66, 0.3);
}

.task-badge.badge-low {
    background: rgba(125, 226, 209, 0.15);
    color: #7de2d1;
    border-color: rgba(125, 226, 209, 0.3);
}

/* Full Height Layout - FIXED */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

#app {
    height: 100vh;
}

.app-container-new {
    height: 100vh;
}

.main-content-new {
    height: 100vh;
    flex: 1;
}

.main-content-new.with-context {
    margin-left: 340px;
    height: 100vh;
    width: calc(100vw - 340px);
    flex: 1;
}

.tasks-content {
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.tasks-header {
    padding: 20px 40px;
    flex-shrink: 0;
}

.tasks-header h1 {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.task-list-container {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
    padding: 0 40px 40px 40px;
}

.task-list-content {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    width: 100%;
}

/* Scrollbar styling */
.task-list-content::-webkit-scrollbar {
    width: 8px;
}

.task-list-content::-webkit-scrollbar-track {
    background: transparent;
}

.task-list-content::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.task-list-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.2);
}

/* Responsive */
@media (max-width: 1200px) {
    .task-table thead th:nth-child(3),
    .task-table thead th:nth-child(4),
    .task-table tbody td:nth-child(3),
    .task-table tbody td:nth-child(4) {
        display: none;
    }
}

@media (max-width: 768px) {
    .task-table thead th:nth-child(5),
    .task-table thead th:nth-child(6),
    .task-table thead th:nth-child(7),
    .task-table tbody td:nth-child(5),
    .task-table tbody td:nth-child(6),
    .task-table tbody td:nth-child(7) {
        display: none;
    }
}

