/* List view theme variables */
:root {
    /* Light mode colors */
    --list-bg-color: #ffffff;
    --list-text-color: #2d3748;
    --list-muted-color: #718096;
    --list-border-color: #e2e8f0;
    --list-header-bg: #f8f9fa;
    --list-hover-bg: #f7fafc;
    --list-progress-bg: #e9ecef;
}

.light-mode {
    --list-bg-color: #ffffff;
    --list-text-color: #2d3748;
    --list-muted-color: #718096;
    --list-border-color: #e2e8f0;
    --list-header-bg: #f8f9fa;
    --list-hover-bg: #f7fafc;
    --list-progress-bg: #e9ecef;
}

html:not(.light-mode) {
    --list-bg-color: var(--color-card-bg);
    --list-text-color: var(--color-white);
    --list-muted-color: var(--color-muted);
    --list-border-color: var(--color-border);
    --list-header-bg: rgba(18, 22, 40, 1);
    --list-hover-bg: rgba(79, 70, 229, 0.1);
    --list-progress-bg: rgba(139, 92, 246, 0.2);
}

/* List view styles */
/* Override the general styles with more specific selectors */
.list-view .table-responsive {
    margin-top: 1rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: var(--list-bg-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 0; /* Remove padding from style.css */
}

.list-view .table,
.list-view table.table {
    margin-bottom: 0;
    color: var(--list-text-color) !important;
    background-color: var(--list-bg-color) !important;
}

.list-view .table th,
.list-view table.table th {
    background-color: var(--list-header-bg) !important;
    border-top: none !important;
    border-bottom-color: var(--list-border-color) !important;
    color: var(--list-text-color) !important;
    font-weight: 600 !important;
}

.list-view .table td,
.list-view table.table td {
    vertical-align: middle !important;
    border-color: var(--list-border-color) !important;
    background-color: var(--list-bg-color) !important;
    color: var(--list-text-color) !important;
}

.list-view .table tbody tr:hover,
.list-view table.table tbody tr:hover {
    background-color: var(--list-hover-bg) !important;
}

.list-view .table tbody tr:hover td,
.list-view table.table tbody tr:hover td {
    background-color: var(--list-hover-bg) !important;
}

.card {
    background-color: var(--list-bg-color);
    border-color: var(--list-border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.progress {
    background-color: var(--list-progress-bg);
    border-radius: var(--radius-full);
}

.badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.4em 0.75em;
    border-radius: var(--radius-md);
}

/* Status colors - using theme variables */
.bg-applied { background-color: var(--bs-info); }
.bg-screening { background-color: var(--bs-warning); }
.bg-interviewing { background-color: var(--bs-primary); }
.bg-offered { background-color: var(--bs-success); }
.bg-hired { background-color: var(--bs-success); }
.bg-rejected { background-color: var(--bs-danger); }

/* Action buttons */
.btn-sm {
    padding: 0.25rem 0.75rem;
    margin: 0 0.125rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all 0.2s ease;
}

/* Filter section */
.filter-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: var(--list-bg-color);
    border-radius: var(--radius-lg);
    border: 1px solid var(--list-border-color);
}

.form-control, .form-select {
    border-radius: var(--radius-md);
    border-color: var(--list-border-color);
    background-color: var(--list-bg-color);
    color: var(--list-text-color);
}

.form-control:focus, .form-select:focus {
    border-color: var(--color-purple);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Placeholder styling for all browsers */
.list-view input::placeholder,
.list-view textarea::placeholder,
.list-view select::placeholder {
    color: var(--list-muted-color) !important;
    opacity: 1;
}

/* Firefox */
.list-view input::-moz-placeholder,
.list-view textarea::-moz-placeholder,
.list-view select::-moz-placeholder {
    color: var(--list-muted-color) !important;
    opacity: 1;
}

/* Edge/IE */
.list-view input:-ms-input-placeholder,
.list-view textarea:-ms-input-placeholder,
.list-view select:-ms-input-placeholder {
    color: var(--list-muted-color) !important;
}

/* WebKit */
.list-view input::-webkit-input-placeholder,
.list-view textarea::-webkit-input-placeholder,
.list-view select::-webkit-input-placeholder {
    color: var(--list-muted-color) !important;
}
/* Pagination */
.pagination {
    margin-top: 1rem;
    margin-bottom: 0;
}

.page-link {
    padding: 0.5rem 0.75rem;
    color: var(--color-purple);
    background-color: var(--list-bg-color);
    border-color: var(--list-border-color);
}

.page-link:hover {
    background-color: var(--list-hover-bg);
    border-color: var(--list-border-color);
    color: var(--color-purple);
}

.page-item.active .page-link {
    background-color: var(--color-purple);
    border-color: var(--color-purple);
}

/* Candidate progress bar */
.candidate-progress {
    height: 16px;
    border-radius: var(--radius-full);
    overflow: hidden;
}

.candidate-progress .progress-bar {
    width: attr(data-progress '%');
    border-radius: var(--radius-full);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .table-responsive {
        margin-top: 0.5rem;
    }
    
    .btn-sm {
        padding: 0.2rem 0.4rem;
    }
    
    .badge {
        font-size: 0.75rem;
    }
}
