/* Table View Styles */
.table-container {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    margin-top: 1rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.data-table th,
.data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.data-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr:hover {
    background: var(--bg-secondary);
}

.total-row td {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
    border-top: 2px solid var(--border-light);
}

.table-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.table-link:hover {
    text-decoration: underline;
}

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.completed {
    background: #dcfce7;
    color: #166534;
}

.status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

[data-theme="dark"] .status-badge.completed {
    background: #166534;
    color: #dcfce7;
}

[data-theme="dark"] .status-badge.pending {
    background: #92400e;
    color: #fef3c7;
}

/* View Toggle Logic */
.list-view .table-container { display: block !important; }
.list-view.is-empty .table-container { display: none !important; }
.grid-view .table-container { display: none !important; }

.list-view .resources-grid,
.list-view .assignments-grid,
.list-view .logs-grid { display: none !important; }

.grid-view .resources-grid,
.grid-view .assignments-grid,
.grid-view .logs-grid { display: grid !important; }

.resources-grid, .assignments-grid, .logs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Test Schedule Table Styles */
.test-schedule-content .data-table .strikethrough {
    text-decoration: line-through;
    opacity: 0.6;
}

.test-schedule-content .status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.test-schedule-content .status-badge.scheduled,
.test-schedule-content .status-badge.rescheduled {
    background-color: #dbeafe;
    color: #1e40af;
}

[data-theme="dark"] .test-schedule-content .status-badge.scheduled,
[data-theme="dark"] .test-schedule-content .status-badge.rescheduled {
    background-color: #1e3a8a;
    color: #93c5fd;
}

.test-schedule-content .status-badge.postponed {
    background-color: #fef3c7;
    color: #92400e;
}

[data-theme="dark"] .test-schedule-content .status-badge.postponed {
    background-color: #92400e;
    color: #fcd34d;
}

.test-schedule-content .status-badge.cancelled {
    background-color: #fee2e2;
    color: #dc2626;
}

[data-theme="dark"] .test-schedule-content .status-badge.cancelled {
    background-color: #7f1d1d;
    color: #fca5a5;
}

.test-schedule-content .status-badge.done {
    background-color: #dcfce7;
    color: #166534;
}

[data-theme="dark"] .test-schedule-content .status-badge.done {
    background-color: #14532d;
    color: #86efac;
}
