/* Data Collection Page Specific Styles */

/* Professional Page Background - Override common.css */
body {
    background: linear-gradient(135deg, #FFFFFF 0%, #FFF7ED 30%, #FFEDD5 60%, #FEF3C7 100%) !important;
    background-color: #FFFFFF !important;
    min-height: 100vh;
}

.data-collection-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #FED7AA 0%, #FDBA74 50%, #FB923C 100%);
    border-radius: var(--border-radius-large);
    color: white;
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.15);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Authentication Overlay */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(15px);
}

.auth-overlay.hidden,
.auth-overlay[hidden],
.auth-overlay[style*="display: none"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -9999 !important;
}

.auth-message {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius-large);
    text-align: center;
    max-width: 500px;
    margin: 20px;
    box-shadow: var(--shadow-heavy);
}

.auth-message h2 {
    color: var(--text-dark);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.auth-message p {
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

.auth-message .btn {
    margin: 0 10px 10px 0;
}

/* User Welcome */
.user-welcome {
    background: linear-gradient(135deg, #FFFFFF 0%, #FFF7ED 100%);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.1);
    margin-bottom: 30px;
    border-left: 4px solid #F97316;
}

.welcome-text {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.user-role {
    color: #F97316;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 12px 24px;
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    text-decoration: none;
    color: var(--text-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-tab:hover {
    border-color: #F97316;
    color: #F97316;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.15);
    transform: translateY(-2px);
}

.filter-tab.active {
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
    color: white;
    border-color: #F97316;
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.3);
}

/* Data Collection Form */
.data-form-container {
    background: linear-gradient(135deg, #FFFFFF 0%, #FAFAF9 100%);
    padding: 30px;
    border-radius: var(--border-radius-large);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    border: 1px solid #F1F5F9;
}

.form-title {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-icon {
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
}

/* Submission Mode Tabs */
.submission-mode-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-light);
}

.mode-tab {
    flex: 1;
    padding: 15px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mode-tab:hover {
    background: rgba(249, 115, 22, 0.05);
    color: var(--primary-color);
}

.mode-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: rgba(249, 115, 22, 0.05);
    font-weight: 600;
}

/* Form Mode Sections */
.form-mode-section {
    display: none;
}

.form-mode-section.active {
    display: block;
}

.form-section-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-light);
}

.form-section-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.required-indicator {
    font-size: 0.85rem;
    color: var(--error-color);
    font-weight: normal;
    margin-left: auto;
}

.section-note {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 5px;
}

.user-info-section {
    margin-top: 20px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
}

.user-info-toggle {
    width: 100%;
    padding: 15px 20px;
    background: #F9FAFB;
    border: none;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.user-info-toggle:hover {
    background: #F3F4F6;
}

.user-info-toggle.active {
    background: var(--primary-color);
    color: white;
}

.toggle-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.user-info-toggle.active .toggle-icon {
    transform: rotate(45deg);
}

.user-info-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
}

.user-info-content.expanded {
    max-height: 500px;
    padding: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group label .required {
    color: var(--error-color);
    margin-left: 3px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    box-sizing: border-box;
    background: #fff;
    font-family: var(--font-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
    font-style: italic;
}

/* Audio Recording */
.audio-recording {
    background: var(--background-light);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 2px dashed var(--border-color);
    text-align: center;
}

.audio-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.audio-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.record-btn {
    background: var(--error-color);
    color: white;
}

.record-btn:hover:not(:disabled) {
    background: #DC2626;
    transform: translateY(-2px);
}

.record-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.stop-btn {
    background: var(--text-dark);
    color: white;
}

.stop-btn:hover:not(:disabled) {
    background: #1a1a1a;
    transform: translateY(-2px);
}

.play-btn {
    background: var(--success-color);
    color: white;
}

.play-btn:hover:not(:disabled) {
    background: #16A34A;
    transform: translateY(-2px);
}

.upload-btn {
    background: var(--primary-color);
    color: white;
}

.upload-btn:hover:not(:disabled) {
    background: #EA580C;
    transform: translateY(-2px);
}

.file-name-display {
    margin-top: 10px;
    padding: 10px;
    background: #F0FDF4;
    border-radius: 8px;
    color: var(--success-color);
    font-weight: 500;
    text-align: center;
}

/* File Upload Styles for Advanced Form */
.file-upload-zone {
    position: relative;
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius-large);
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    background: var(--background-secondary);
    cursor: pointer;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.file-upload-zone:hover {
    border-color: var(--primary-color);
    background: rgba(249, 115, 22, 0.05);
    transform: translateY(-2px);
}

.file-upload-zone.drag-over {
    border-color: var(--primary-color);
    background: rgba(249, 115, 22, 0.1);
    border-width: 3px;
}

.upload-placeholder {
    width: 100%;
}

.upload-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
}

.upload-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.upload-limit {
    font-size: 0.875rem;
    color: var(--text-light);
}

.file-preview {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--background-light);
    border-radius: 8px;
    width: 100%;
}

.file-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.file-info {
    flex: 1;
    text-align: left;
    min-width: 0;
}

.file-name {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
}

.file-size {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
}

.file-remove {
    background: var(--error-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.125rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.file-remove:hover {
    background: #DC2626;
    transform: scale(1.1);
}

.file-upload-zone.error {
    border-color: var(--error-color);
    background: rgba(220, 38, 38, 0.05);
}

.upload-error {
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 10px;
    display: block;
}


.audio-status {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.audio-waveform {
    height: 60px;
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    margin-bottom: 15px;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Data Display */
.data-display {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
    padding: 30px;
    border-radius: var(--border-radius-large);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #E5E7EB;
}

.data-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.data-title {
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 600;
}

.data-count {
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
}

/* Data Table */
.data-table-container {
    overflow-x: auto;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
    font-weight: 600;
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.2);
}

.data-table td {
    color: var(--text-light);
}

.data-table tr:hover {
    background: rgba(249, 115, 22, 0.05);
}

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

/* Audio Cell */
.audio-cell {
    text-align: center;
}

.play-audio-btn {
    background: var(--success-color);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition);
}

.play-audio-btn:hover {
    background: #16A34A;
    transform: translateY(-1px);
}

.play-audio-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Loading States */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    z-index: 100;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.empty-state p {
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .data-collection-container {
        padding: 15px;
    }
    
    .page-header {
        padding: 30px 15px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .data-form-container,
    .data-display {
        padding: 20px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .filter-tabs {
        justify-content: center;
    }
    
    .filter-tab {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
    
    .audio-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .audio-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
    
    .data-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.7rem;
    }
    
    .page-subtitle {
        font-size: 0.9rem;
    }
    
    .data-form-container,
    .data-display {
        padding: 15px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
    }
    
    .submit-btn {
        padding: 12px;
        font-size: 1rem;
    }
    
    .data-table {
        font-size: 0.8rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 6px 8px;
    }
}

/* Village selection is now a simple dropdown like other form elements */

/* Enhanced Table Styles with Column Separators */
.enhanced-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.9rem;
    border: 1px solid #FED7AA;
    border-radius: 8px;
    overflow: hidden;
}

.enhanced-table th {
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
    color: white;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #EA580C;
    border-right: 2px solid rgba(255, 255, 255, 0.15);
    position: relative;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

.enhanced-table th:last-child {
    border-right: none;
}

.enhanced-table th:first-child {
    border-left: none;
}

.enhanced-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #F1F5F9;
    border-right: 1px solid #F1F5F9;
    vertical-align: top;
    word-wrap: break-word;
}

.enhanced-table td:last-child {
    border-right: none;
}

.enhanced-table td:first-child {
    border-left: none;
    font-weight: 500;
}

.enhanced-table tr:hover {
    background: #F8FAFC;
}

.enhanced-table tr:hover td {
    border-right-color: #E2E8F0;
}

.enhanced-table tr:nth-child(even) {
    background: #fafafa;
}

/* Responsive Mobile Styles */
@media (max-width: 768px) {
    .enhanced-table {
        border: 0;
    }
    
    .enhanced-table thead {
        border: none;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }
    
    .enhanced-table tr {
        border: 2px solid #e8f5e8;
        border-left: 4px solid #2e8b57;
        display: block;
        margin-bottom: 1rem;
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(46, 139, 87, 0.1);
        padding: 1rem;
    }
    
    .enhanced-table td {
        border: none;
        display: block;
        font-size: 0.9rem;
        text-align: left;
        padding: 0.8rem 0;
        border-bottom: 1px solid #f0f0f0;
        margin: 0;
    }
    
    .enhanced-table td:last-child {
        border-bottom: none;
    }
    
    .enhanced-table td:before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: #2e8b57;
        display: inline-block;
        width: 40%;
        min-width: 120px;
    }
    
    .enhanced-table td:empty:before {
        content: attr(data-label) ": ";
        color: #999;
    }
    
    .enhanced-table td:empty:after {
        content: "Not specified";
        color: #999;
        font-style: italic;
    }
}

/* Tablet responsive adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
    .enhanced-table {
        font-size: 0.85rem;
    }
    
    .enhanced-table th,
    .enhanced-table td {
        padding: 10px 8px;
    }
    
    .enhanced-table th {
        font-size: 0.8rem;
    }
}

/* ====================================
   Pagination Styles
   ==================================== */

.data-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.pagination-info {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.pagination-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0 1.5rem 0;
    padding: 1.5rem 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #e2e8f0;
    background: white;
    color: #475569;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 80px;
    text-align: center;
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f1f5f9;
}

.page-numbers {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.page-numbers button {
    width: 40px;
    height: 40px;
    border: 2px solid #e2e8f0;
    background: white;
    color: #475569;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-numbers button:hover {
    border-color: var(--primary-color);
    background: #fff7ed;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.page-numbers button.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.page-size-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-left: 1rem;
    border-left: 2px solid #e2e8f0;
}

.page-size-controls label {
    color: #475569;
    font-size: 0.9rem;
    font-weight: 600;
}

.page-size-select {
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23475569' d='M4 6l4 4 4-4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
}

.page-size-select:hover {
    border-color: var(--primary-color);
    background-color: #fff7ed;
}

.page-size-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

/* Responsive pagination */
@media (max-width: 768px) {
    .data-header-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .pagination-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .pagination-controls {
        width: 100%;
        justify-content: center;
    }
    
    .pagination-btn {
        min-width: 70px;
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .page-numbers button {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
    
    .page-size-controls {
        width: 100%;
        justify-content: center;
        padding-left: 0;
        border-left: none;
        border-top: 2px solid #e2e8f0;
        padding-top: 1rem;
    }
    
    .pagination-info {
        font-size: 0.85rem;
        text-align: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .pagination-btn {
        min-width: 60px;
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .page-numbers {
        gap: 0.25rem;
    }
    
    .page-numbers button {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .page-size-select {
        font-size: 0.85rem;
        padding: 0.4rem 2rem 0.4rem 0.8rem;
    }
}