/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ensure new status filter layout is properly displayed */
.status-filter-container {
    display: flex;
    flex-direction: column;
}

.status-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px;
    background: white;
}

.status-option {
    display: block;
}

.status-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    background: white;
    transition: all 0.3s ease;
    position: relative;
    min-width: 120px;
    justify-content: center;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header styles */
.header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.header-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.header-content p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Description section */
.description-section {
    margin-bottom: 30px;
}

.description-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.description-content h2 {
    color: #667eea;
    font-size: 1.8rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.description-content h2 i {
    color: #764ba2;
}

.description-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 25px;
}

.description-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f0ff 100%);
    border-radius: 10px;
    border-left: 4px solid #667eea;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.feature-item i {
    color: #667eea;
    font-size: 1.2rem;
    min-width: 20px;
}

.feature-item span {
    color: #555;
    font-weight: 500;
}

/* Main content */
.main-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

/* Upload section */
.upload-section {
    margin-bottom: 40px;
}

.upload-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 2px dashed #e0e0e0;
    transition: all 0.3s ease;
}

.upload-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.upload-area {
    text-align: center;
    cursor: pointer;
}

.upload-icon {
    font-size: 4rem;
    color: #667eea;
    margin-bottom: 20px;
}

.upload-area h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.upload-area p {
    color: #666;
    margin-bottom: 30px;
}

.upload-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

/* File info */
.file-info {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.file-details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    color: #666;
}

.file-details i {
    color: #667eea;
    font-size: 1.2rem;
}

.generate-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.6);
}

/* Loading section */
.loading-section {
    text-align: center;
    margin: 40px 0;
}

.loading-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-card h3 {
    margin-bottom: 10px;
    color: #333;
}

.loading-card p {
    color: #666;
}

/* Report section */
.report-section {
    margin-top: 40px;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.report-title h2 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.filename-display {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
    margin: 0;
}

.report-controls {
    display: flex;
    gap: 15px;
}

.export-btn, .new-report-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.export-btn {
    background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%);
    color: white;
}

.new-report-btn {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
}

.export-btn:hover, .new-report-btn:hover {
    transform: translateY(-2px);
}

/* Chart container */
.chart-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

#qidChart {
    width: 100%;
    height: 100%;
    min-height: 500px;
}

/* Tables container */
.tables-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.table-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.table-card h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-card h3 i {
    color: #667eea;
}

.qid-selector h3 {
    margin-bottom: 15px;
}

.select-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.qid-dropdown {
    flex: 0 0 200px;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
    color: #333;
    transition: all 0.3s ease;
}

.hostname-input {
    flex: 0 0 250px;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
    color: #333;
    transition: all 0.3s ease;
}

/* Lean Status Filter Styles */
.status-filter-lean {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    flex: 0 0 auto;
    min-width: 400px;
}

.filter-label-lean {
    font-weight: 500;
    color: #495057;
    font-size: 0.9rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-label-lean i {
    color: #6c757d;
    font-size: 0.8rem;
}

.status-toggles {
    display: flex;
    gap: 6px;
    flex: 1;
}

.status-toggle {
    cursor: pointer;
    user-select: none;
}

.status-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.toggle-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid #dee2e6;
    border-radius: 16px;
    background: white;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.toggle-chip:hover {
    border-color: #adb5bd;
    background: #f8f9fa;
}

.status-toggle input:checked ~ .toggle-chip {
    border-width: 2px;
    font-weight: 600;
}

/* Status-specific colors - subtle */
.toggle-chip.active {
    border-color: #dc3545;
    color: #dc3545;
}

.status-toggle input:checked ~ .toggle-chip.active {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.toggle-chip.fixed {
    border-color: #28a745;
    color: #28a745;
}

.status-toggle input:checked ~ .toggle-chip.fixed {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.toggle-chip.new {
    border-color: #007bff;
    color: #007bff;
}

.status-toggle input:checked ~ .toggle-chip.new {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.toggle-chip.reopened {
    border-color: #fd7e14;
    color: #fd7e14;
}

.status-toggle input:checked ~ .toggle-chip.reopened {
    background: #fd7e14;
    color: white;
    border-color: #fd7e14;
}

.toggle-chip.info {
    border-color: #6c757d;
    color: #6c757d;
}

.status-toggle input:checked ~ .toggle-chip.info {
    background: #6c757d;
    color: white;
    border-color: #6c757d;
}

.count {
    background: rgba(0,0,0,0.08);
    color: inherit;
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 16px;
    text-align: center;
}

.status-toggle input:checked ~ .toggle-chip .count {
    background: rgba(255,255,255,0.2);
}

.filter-actions-lean {
    display: flex;
    gap: 4px;
}

.action-btn {
    background: none;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 4px 8px;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.75rem;
    font-weight: 500;
    min-width: 32px;
    height: 28px;
}

.action-btn:hover {
    border-color: #adb5bd;
    background: #f8f9fa;
    color: #495057;
}

.action-btn:active {
    transform: scale(0.95);
}

.qid-dropdown, .status-dropdown {
    cursor: pointer;
}

.hostname-input {
    cursor: text;
}

.qid-dropdown:focus, .status-dropdown:focus, .hostname-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.qid-dropdown:hover, .status-dropdown:hover, .hostname-input:hover {
    border-color: #667eea;
}

.refresh-btn {
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    color: #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 44px;
}

.refresh-btn:hover {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

.refresh-btn:active {
    transform: scale(0.95);
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

tr:hover {
    background: #f8f9fa;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .header-content h1 {
        font-size: 2rem;
    }
    
    .description-card {
        padding: 20px;
    }
    
    .description-content h2 {
        font-size: 1.5rem;
    }
    
    .description-features {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .feature-item {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
    
    .tables-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .report-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .report-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .chart-container {
        padding: 15px;
    }
    
    #qidChart {
        min-height: 400px;
    }
    
    .select-wrapper {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .qid-dropdown, .hostname-input {
        width: 100%;
        min-height: 44px;
    }
    
    .status-filter-lean {
        width: 100%;
        margin-bottom: 15px;
        order: 2;
        flex-direction: column;
        gap: 8px;
        padding: 10px;
        min-width: auto;
    }
    
    .qid-dropdown {
        order: 1;
        flex: 0 0 100%;
    }
    
    .hostname-input {
        order: 3;
        flex: 0 0 100%;
    }
    
    .refresh-btn {
        order: 4;
        align-self: flex-end;
        min-height: 44px;
        padding: 12px 16px;
        flex: 0 0 auto;
    }
    
    .status-toggles {
        flex-direction: column;
        gap: 6px;
    }
    
    .toggle-chip {
        min-width: 100%;
        justify-content: space-between;
        padding: 8px 12px;
    }
    
    .filter-actions-lean {
        justify-content: center;
        gap: 8px;
    }
    
    .action-btn {
        min-width: 36px;
        height: 32px;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 5px;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .upload-card {
        padding: 20px;
    }
    
    .chart-container {
        padding: 10px;
    }
    
    #qidChart {
        min-height: 350px;
    }
    
    .report-header h2 {
        font-size: 1.5rem;
    }
}

/* Drag and drop styles */
.upload-area.dragover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
    transform: scale(1.02);
}

/* Success animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.report-section {
    animation: fadeInUp 0.6s ease-out;
}

/* Changelog Section Styles */
.changelog-section {
    margin-top: 2rem;
    display: block;
}

.changelog-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    color: white;
}

.changelog-header {
    text-align: center;
    margin-bottom: 2rem;
}

.changelog-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.changelog-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 1rem;
}

.changelog-content {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 1rem;
}

.changelog-version {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.changelog-version:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.changelog-version h4 {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
}

.changelog-version ul {
    margin: 0;
    padding-left: 1.5rem;
    list-style: none;
}

.changelog-version li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
    position: relative;
}

.changelog-version li:before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.7rem;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
}

.changelog-version .feature {
    color: #4ade80;
    font-weight: 600;
}

.changelog-version .improvement {
    color: #60a5fa;
    font-weight: 600;
}

.changelog-version .fix {
    color: #f87171;
    font-weight: 600;
}

/* Chat Section Styles */
.chat-section {
    margin-top: 40px;
    display: block; /* Always visible now */
}

.chat-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    margin-bottom: 0;
}

.chat-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.chat-header h3 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.chat-header h3 i {
    color: #667eea;
}

.chat-header p {
    color: #666;
    font-size: 0.95rem;
}

/* Subscription Status Styles */
.subscription-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

.subscription-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.subscription-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #856404;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
}

.subscription-badge.pro {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.subscription-badge i {
    font-size: 0.9rem;
}

.usage-info {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
}

.upgrade-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
}

.upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

.upgrade-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.upgrade-btn.hidden {
    display: none;
}

.chat-messages {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.message {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.message:last-child {
    margin-bottom: 0;
}

.bot-message {
    justify-content: flex-start;
}

.user-message {
    justify-content: flex-end;
}

.message-content {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.bot-message .message-content {
    background: #e3f2fd;
    color: #1565c0;
    border-bottom-left-radius: 5px;
}

.user-message .message-content {
    background: #667eea;
    color: white;
    border-bottom-right-radius: 5px;
}

.message-content i {
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.message-content p {
    margin: 0;
    line-height: 1.4;
    word-wrap: break-word;
}

.chat-input-container {
    border-top: 1px solid #e9ecef;
    padding-top: 20px;
}

.chat-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
}

.chat-input-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.8rem;
    color: #666;
}

.char-counter {
    font-weight: 500;
}

.chat-tip {
    font-style: italic;
}

.chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
    resize: none;
    font-family: inherit;
}

.chat-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.chat-input:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.send-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
}

.send-btn:hover:not(:disabled) {
    background: #5a6fd8;
    transform: scale(1.05);
}

.send-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.send-btn i {
    font-size: 1rem;
}

.chat-status {
    text-align: center;
    font-size: 0.85rem;
    color: #666;
    min-height: 20px;
}

.chat-status.typing {
    color: #667eea;
}

.chat-status.error {
    color: #d32f2f;
}

.chat-status.success {
    color: #388e3c;
}

/* Loading animation for chat */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: #f0f0f0;
    border-radius: 15px;
    width: fit-content;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #999;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive design for chat */
@media (max-width: 768px) {
    .chat-card {
        padding: 20px;
    }
    
    .chat-messages {
        max-height: 300px;
        padding: 10px;
    }
    
    .message-content {
        max-width: 90%;
        padding: 10px 14px;
    }
    
    .chat-input-wrapper {
        flex-direction: column;
        gap: 8px;
    }
    
    .chat-input {
        width: 100%;
    }
    
    .send-btn {
        align-self: flex-end;
    }
}

/* Responsive design for status filter */
@media (max-width: 768px) {
    .status-filter-lean {
        margin-bottom: 20px;
        padding: 12px;
    }
    
    .status-toggles {
        flex-direction: column;
        gap: 8px;
    }
    
    .toggle-chip {
        min-width: 100%;
        justify-content: space-between;
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .count {
        font-size: 0.7rem;
        padding: 1px 6px;
    }
    
    .filter-actions-lean {
        justify-content: center;
        gap: 8px;
    }
    
    .action-btn {
        min-width: 32px;
        height: 32px;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .status-filter-lean {
        margin-bottom: 15px;
        padding: 8px;
        gap: 6px;
    }
    
    .status-toggles {
        gap: 4px;
    }
    
    .toggle-chip {
        padding: 8px 10px;
        min-width: 100%;
        font-size: 0.8rem;
    }
    
    .action-btn {
        min-width: 28px;
        height: 28px;
        padding: 4px 6px;
        font-size: 0.7rem;
    }
    
    .filter-label-lean {
        font-size: 0.85rem;
    }
}

/* Scrollbar styling for chat messages */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.status-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    background: white;
    transition: all 0.3s ease;
    position: relative;
    min-width: 120px;
    justify-content: center;
}


