/* AI-Header: List and table component styles */
/* Date: 2025-07-13 */

/* ===========================================
   LISTS - BASE COMPONENTS
   =========================================== */

/* Theme list container */
.theme-list-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.theme-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    color: white;
    border-bottom: 1px solid;
}

.theme-list-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.theme-list-actions {
    display: flex;
    gap: 0.5rem;
}

.theme-list-loading {
    text-align: center;
    padding: 3rem 1.5rem;
}

.theme-list-empty {
    padding: 3rem 1.5rem;
}

/* Table styles */
.theme-list-table {
    overflow-x: auto;
}

.theme-list-sortable {
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}

.theme-list-actions-header,
.theme-list-actions-cell {
    width: 150px;
    text-align: center;
}

.theme-list-actions-cell {
    white-space: nowrap;
}

/* Mobile card styles */
.theme-list-cards {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.theme-list-card {
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.theme-list-card-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid;
}

.theme-list-card-field:last-of-type {
    border-bottom: none;
}

.theme-list-card-label {
    font-weight: 600;
    min-width: 80px;
}

.theme-list-card-value {
    text-align: right;
    flex: 1;
}

.theme-list-card-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

/* ===========================================
   LISTS - LIGHT THEME
   =========================================== */

[data-bs-theme="light"] .theme-list-container {
    background: var(--theme-surface, #f8f9fa);
}

[data-bs-theme="light"] .theme-list-header {
    background: var(--theme-primary, #722F37);
    border-color: var(--theme-border, #dee2e6);
}

[data-bs-theme="light"] .theme-list-loading {
    color: var(--theme-text-secondary, #6c757d);
}

[data-bs-theme="light"] .theme-list-sortable:hover {
    background: var(--theme-surface-hover, #e9ecef);
}

[data-bs-theme="light"] .theme-list-card {
    background: var(--theme-background, #ffffff);
    border: 1px solid var(--theme-border, #dee2e6);
}

[data-bs-theme="light"] .theme-list-card-field {
    border-color: var(--theme-border, #dee2e6);
}

[data-bs-theme="light"] .theme-list-card-label {
    color: var(--theme-text-secondary, #6c757d);
}

[data-bs-theme="light"] .theme-list-card-value {
    color: var(--theme-text-primary, #212529);
}

[data-bs-theme="light"] .theme-list-card-actions {
    border-color: var(--theme-border, #dee2e6);
}

/* ===========================================
   LISTS - DARK THEME
   =========================================== */

[data-bs-theme="dark"] .theme-list-container {
    background: #2d2d2d;
}

[data-bs-theme="dark"] .theme-list-header {
    background: #4a5568;
    border-color: #404040;
}

[data-bs-theme="dark"] .theme-list-loading {
    color: #9ca3af;
}

[data-bs-theme="dark"] .theme-list-sortable:hover {
    background: #3d3d3d;
}

[data-bs-theme="dark"] .theme-list-card {
    background: #1a1a1a;
    border: 1px solid #404040;
}

[data-bs-theme="dark"] .theme-list-card-field {
    border-color: #404040;
}

[data-bs-theme="dark"] .theme-list-card-label {
    color: #9ca3af;
}

[data-bs-theme="dark"] .theme-list-card-value {
    color: #e9ecef;
}

[data-bs-theme="dark"] .theme-list-card-actions {
    border-color: #404040;
}
