/* Compact Header Section */
.header-section {
    margin-bottom: 0.5rem;
}

.header-section h4 {
    color: #2c3e50;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.25rem;
}

/* Compact Filter Section */
.filter-section-compact {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 0.75rem;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #dee2e6;
}

/* Form Controls Compact */
.form-control-sm, .form-select-sm {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.form-control-sm:focus, .form-select-sm:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.1rem rgba(13, 110, 253, 0.15);
}

/* Compact Buttons */
.btn-sm {
    border-radius: 6px;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid;
}

.btn-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Form Controls Enhancement */
.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    background-color: #fff;
}

.form-control:focus, .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
    background-color: #fff;
}

/* Button Enhancements */
.btn {
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
}

.btn-success {
    background: linear-gradient(135deg, #198754 0%, #146c43 100%);
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e6a700 100%);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.btn-info {
    background: linear-gradient(135deg, #0dcaf0 0%, #0aa2c0 100%);
}

/* Table Section */
.table-section {
    background: #fff;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.table-header {
    margin-bottom: 1rem;
}

.results-info .badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.view-toggle .btn {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

/* Enhanced Table */
.table {
    margin-bottom: 0;
    border-radius: 10px;
    overflow: hidden;
}

.table thead th {
    background: linear-gradient(135deg, #343a40 0%, #495057 100%);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 1rem 0.75rem;
    position: relative;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
    transform: scale(1.02);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.table th,
.table td {
    font-size: clamp(12px, 2.5vw, 14px);
    padding: 1rem 0.75rem;
    border-color: #e9ecef;
    vertical-align: middle;
}

.sort-icon {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-left: 5px;
}

/* Status Badges - Removed since status column was eliminated */

/* Compact Table Section */
.table-section-compact {
    background: #fff;
    border-radius: 8px;
    padding: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

/* Compact Table */
.table-sm {
    font-size: 0.875rem;
}

.table-sm thead th {
    background: linear-gradient(135deg, #343a40 0%, #495057 100%);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.5rem 0.5rem;
    font-size: 0.85rem;
    position: relative;
}

.compact-th {
    white-space: nowrap;
    min-width: 80px;
}

.table-sm tbody tr {
    transition: all 0.2s ease;
}

.table-sm tbody tr:hover {
    background-color: #f8f9fa;
    transform: scale(1.01);
}

.table-sm th,
.table-sm td {
    padding: 0.5rem 0.5rem;
    border-color: #e9ecef;
    vertical-align: middle;
    font-size: 0.8rem;
}

.sort-icon {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-left: 3px;
}

/* Compact Cards */
.survey-card {
    background: #fff;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.survey-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.survey-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.survey-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.survey-card-body .info-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.survey-card-body .info-item i {
    width: 16px;
    color: #6c757d;
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

/* Empty State Compact */
#emptyState {
    padding: 1.5rem 1rem;
}

#emptyState i {
    color: #dee2e6;
}

/* Compact Pagination */
.pagination-sm .page-link {
    border: none;
    border-radius: 6px;
    margin: 0 1px;
    padding: 0.375rem 0.75rem;
    color: #6c757d;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.pagination-sm .page-item.active .page-link {
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
    border-color: transparent;
    box-shadow: 0 1px 5px rgba(13, 110, 253, 0.3);
}

.pagination-sm .page-link:hover {
    background-color: #f8f9fa;
    color: #0d6efd;
    transform: translateY(-1px);
}

/* Loading Spinner Compact */
#loadingSpinner {
    padding: 1rem 0;
}

.spinner-border-sm {
    width: 1.5rem;
    height: 1.5rem;
}

/* Responsive Design Compact */
@media (max-width: 768px) {
    .container-fluid {
        padding: 0.5rem;
    }
    
    .filter-section-compact {
        padding: 0.5rem;
    }
    
    .table-section-compact {
        padding: 0.5rem;
    }
    
    .table-sm th,
    .table-sm td {
        padding: 0.375rem 0.25rem;
        font-size: 0.75rem;
    }
    
    .compact-th {
        min-width: 60px;
    }
}

@media (max-width: 576px) {
    .header-section h4 {
        font-size: 1.1rem;
    }
    
    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .table-sm th,
    .table-sm td {
        padding: 0.25rem 0.125rem;
        font-size: 0.7rem;
    }
    
    .survey-card {
        padding: 0.5rem;
        margin-bottom: 0.375rem;
    }
    
    .survey-card-body .info-item {
        font-size: 0.8rem;
        margin-bottom: 0.125rem;
    }
    
    .pagination-sm .page-link {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.3s ease-out;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .filter-section-compact {
        background: #2c3e50;
        border-color: #34495e;
    }
    
    .table-section-compact {
        background: #2c3e50;
        border-color: #34495e;
    }
    
    .survey-card {
        background: #2c3e50;
        color: #fff;
        border-color: #34495e;
    }
}

/* Utility classes for compact design */
.text-truncate-compact {
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.badge-compact {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}
