* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f7fa;
    color: #333;
}

.header {
    background: #2c3e50;
    color: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

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

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stat-card h3 {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card .value {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
}

.stat-card .subvalue {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

.controls {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.controls label {
    font-weight: 500;
    margin-right: 0.5rem;
}

.controls select,
.controls input {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.875rem;
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-success {
    background: #27ae60;
    color: white;
}

.btn-success:hover {
    background: #229954;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

.btn-active {
    background: #2c3e50 !important;
    color: white !important;
}

/* Action Buttons for Storage Backend Table */
.btn-action {
    padding: 0.375rem 0.875rem;
    margin: 0 0.25rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 500;
    color: white;
    transition: all 0.2s ease;
    display: inline-block;
}

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

.btn-action:active {
    transform: translateY(0);
}

.btn-action-edit {
    background: #17a2b8;
}

.btn-action-edit:hover {
    background: #138496;
}

.btn-action-test {
    background: #007bff;
}

.btn-action-test:hover {
    background: #0056b3;
}

.btn-action-activate {
    background: #28a745;
}

.btn-action-activate:hover {
    background: #218838;
}

.btn-action-delete {
    background: #dc3545;
}

.btn-action-delete:hover {
    background: #c82333;
}

.btn-action:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.btn-action:disabled:hover {
    transform: none;
    box-shadow: none;
}

.table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: #f8f9fa;
}

th {
    text-align: left;
    padding: 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

td {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.875rem;
    vertical-align: middle;
}

tbody tr:hover {
    background: #f8f9fa;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

.badge-secondary {
    background: #e2e3e5;
    color: #383d41;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-bottom: 2rem;
}

.pagination button {
    padding: 0.5rem 1rem;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
}

.pagination button:hover:not(:disabled) {
    background: #e9ecef;
}

.pagination button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.pagination .active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.actions {
    display: flex;
    gap: 0.5rem;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.modal[style*="display: block"] {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    width: 90%;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    font-size: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
}

.detail-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.detail-label {
    font-weight: 600;
    color: #495057;
}

.detail-value {
    color: #212529;
}

.renditions-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.rendition-card {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
}

/* Tab navigation styles */
.tab-navigation {
    background: white;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.tab-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    overflow-x: auto;
}

.tab-btn {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #6c757d;
    transition: all 0.2s;
    white-space: nowrap;
}

.tab-btn:hover {
    color: #3498db;
    background: #f8f9fa;
}

.tab-btn.active {
    color: #3498db;
    border-bottom-color: #3498db;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Chart containers */
.chart-container {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

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

.chart-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
}

.chart-controls {
    display: flex;
    gap: 0.5rem;
}

.chart-controls button {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    background: #e9ecef;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.chart-controls button:hover {
    background: #dee2e6;
}

.chart-controls button.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* ===========================
   Storage Tab - Two Column Layout
   =========================== */
.storage-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 1200px) {
    .storage-two-column {
        grid-template-columns: 1fr;
    }
}

.storage-column-left,
.storage-column-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Compact Card Style */
.compact-card {
    padding: 1rem !important;
    margin-bottom: 0 !important;
}

.compact-card h3 {
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.section-header h3 {
    margin-bottom: 0;
}

/* Compact Stats Row */
.compact-stats-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.compact-stat {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.compact-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    display: block;
}

.compact-stat-label {
    font-size: 0.75rem;
    color: #6c757d;
    display: block;
}

.compact-stats-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.75rem;
    color: #6c757d;
    padding-top: 0.5rem;
    border-top: 1px solid #e9ecef;
}

.compact-stats-detail strong {
    color: #495057;
}

/* Mini Progress Bar */
.mini-progress {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    margin-top: 0.25rem;
    overflow: hidden;
}

.mini-progress .progress-fill {
    height: 100%;
    background: #28a745;
    transition: width 0.3s;
}

/* Settings Panel */
.settings-panel {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e9ecef;
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.setting-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.setting-item label {
    font-size: 0.75rem;
    color: #6c757d;
    min-width: 60px;
}

.input-with-unit {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.input-with-unit input {
    width: 70px;
    padding: 0.25rem 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.8125rem;
}

.input-with-unit span {
    font-size: 0.75rem;
    color: #6c757d;
}

.settings-actions {
    margin-top: 0.75rem;
    text-align: right;
}

.toggle-settings-btn {
    background: #e9ecef !important;
    color: #495057 !important;
}

/* Storage Comparison */
.storage-comparison {
    display: flex;
    gap: 1rem;
}

.storage-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
}

.storage-item.local {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.storage-item.external {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

.storage-icon {
    font-size: 1.5rem;
}

.storage-info {
    display: flex;
    flex-direction: column;
}

.storage-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
}

.storage-label {
    font-size: 0.75rem;
    color: #6c757d;
}

/* Transfer Stats */
.transfer-backends {
    margin-bottom: 0.75rem;
}

.transfer-totals {
    display: flex;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e9ecef;
}

.transfer-total-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 0.8125rem;
}

.transfer-total-item.total {
    background: #e3f2fd;
}

.transfer-icon {
    font-size: 1rem;
}

.transfer-value {
    font-weight: 600;
    color: #2c3e50;
}

.transfer-count {
    font-size: 0.6875rem;
    color: #6c757d;
}

/* Compact Select & Input */
.compact-select {
    padding: 0.25rem 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.8125rem;
    background: white;
}

.compact-input {
    padding: 0.25rem 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.8125rem;
    width: 80px;
}

/* Backends Table */
.backends-table-wrapper {
    max-height: 200px;
    overflow-y: auto;
}

.compact-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.compact-table th {
    padding: 0.5rem;
    font-size: 0.75rem;
    background: #f8f9fa;
}

.compact-table td {
    padding: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.compact-table .btn-action {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    margin: 0 0.125rem;
}

/* Sync Management */
.sync-header-actions {
    display: flex;
    gap: 0.5rem;
}

.sync-top-row {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.sync-stats-compact {
    display: flex;
    gap: 0.5rem;
}

.sync-stat {
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    text-align: center;
    min-width: 70px;
}

.sync-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    display: block;
}

.sync-stat-label {
    font-size: 0.6875rem;
    display: block;
}

.sync-stat.pending {
    background: #fff3cd;
    color: #856404;
}

.sync-stat.completed {
    background: #d4edda;
    color: #155724;
}

.sync-stat.failed {
    background: #f8d7da;
    color: #721c24;
}

.sync-stat.uploading {
    background: #d1ecf1;
    color: #0c5460;
}

.sync-controls-compact {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sync-schedule-inline,
.sync-batch-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.schedule-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #1565c0;
}

.compact-checkbox {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    cursor: pointer;
}

.compact-checkbox input {
    width: 14px;
    height: 14px;
}

.sync-status-bar {
    margin-top: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 0.8125rem;
    color: #495057;
}

/* Sync Progress Compact */
.sync-progress-compact {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
    margin-bottom: 0.5rem;
}

.progress-bar-wrapper {
    height: 20px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: #28a745;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    transition: width 0.3s;
}

/* Sync Activities */
.sync-activities-section {
    margin-top: 0.75rem;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    overflow: hidden;
}

.activities-header {
    padding: 0.5rem 0.75rem;
    background: #f8f9fa;
    font-size: 0.8125rem;
    font-weight: 600;
    border-bottom: 1px solid #e9ecef;
}

.activities-table-wrapper {
    max-height: 250px;
    overflow-y: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sync-top-row {
        flex-direction: column;
    }

    .sync-stats-compact {
        width: 100%;
        justify-content: space-between;
    }

    .sync-stat {
        min-width: auto;
        flex: 1;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .storage-comparison {
        flex-direction: column;
    }
}

/* ===========================
   Settings Tab - Two Column Layout
   =========================== */
.settings-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: start;
}

@media (max-width: 900px) {
    .settings-two-column {
        grid-template-columns: 1fr;
    }
}

.settings-section-desc {
    font-size: 0.8125rem;
    color: #6c757d;
    margin-bottom: 0.75rem;
}

/* Token Display */
.token-display {
    text-align: center;
    padding: 0.75rem;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.token-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1565c0;
    display: block;
}

.token-readable {
    font-size: 0.875rem;
    color: #1976d2;
}

/* Token Slider */
.token-slider-wrapper {
    margin-bottom: 0.75rem;
}

.token-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #dee2e6;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.token-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.token-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Quick Buttons */
.token-quick-btns {
    display: flex;
    gap: 0.375rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.token-quick-btns .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* Settings Actions Row */
.settings-actions-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e9ecef;
}

.settings-updated {
    font-size: 0.75rem;
    color: #6c757d;
    margin-left: auto;
}

/* Rendition Grid */
.rendition-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.rendition-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.rendition-item:hover {
    border-color: #3498db;
    background: #f0f7ff;
}

.rendition-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #3498db;
}

.rendition-item input[type="checkbox"]:checked + .rendition-info .rendition-label {
    color: #3498db;
}

.rendition-info {
    display: flex;
    flex-direction: column;
}

.rendition-label {
    font-weight: 600;
    font-size: 0.9375rem;
    color: #2c3e50;
}

.rendition-desc {
    font-size: 0.6875rem;
    color: #6c757d;
}

/* Settings Tip */
.settings-tip {
    font-size: 0.75rem;
    color: #0c5460;
    background: #d1ecf1;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

@media (max-width: 480px) {
    .rendition-grid {
        grid-template-columns: 1fr;
    }

    .token-quick-btns .btn {
        flex: 1;
    }
}

/* ===========================
   Monitoring Tab - Compact Layout
   =========================== */

/* Health Status Bar */
.monitor-health-bar {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.health-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    flex: 1;
    min-width: 120px;
}

.health-item.performance {
    background: #e8f4fd;
}

.health-icon {
    font-size: 1.25rem;
}

.health-info {
    display: flex;
    flex-direction: column;
}

.health-label {
    font-size: 0.6875rem;
    color: #6c757d;
    text-transform: uppercase;
}

.health-value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #2c3e50;
}

.health-detail {
    font-size: 0.6875rem;
    color: #6c757d;
}

/* Two Column Layout */
.monitor-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: start;
}

@media (max-width: 1000px) {
    .monitor-two-column {
        grid-template-columns: 1fr;
    }
}

/* Section Badge */
.section-badge {
    font-size: 0.625rem;
    font-weight: 600;
    background: #ffc107;
    color: #000;
    padding: 0.125rem 0.375rem;
    border-radius: 3px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* Queue Stats Row */
.queue-stats-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.queue-stat {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    border-radius: 6px;
}

.queue-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}

.queue-stat-label {
    font-size: 0.6875rem;
    display: block;
}

.queue-stat.queued {
    background: #fff3cd;
    color: #856404;
}

.queue-stat.processing {
    background: #d1ecf1;
    color: #0c5460;
}

.queue-stat.pending {
    background: #e2e3e5;
    color: #383d41;
}

/* Error Stats Row */
.error-stats-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.error-stat {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    border-radius: 6px;
}

.error-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}

.error-stat-label {
    font-size: 0.6875rem;
    display: block;
}

.error-stat.failed {
    background: #f8d7da;
    color: #721c24;
}

.error-stat.rate {
    background: #fff3cd;
    color: #856404;
}

/* Monitor Table Section */
.monitor-table-section {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    overflow: hidden;
}

.monitor-table-header {
    padding: 0.5rem 0.75rem;
    background: #f8f9fa;
    font-size: 0.8125rem;
    font-weight: 600;
    border-bottom: 1px solid #e9ecef;
}

.monitor-table-wrapper {
    max-height: 200px;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .monitor-health-bar {
        flex-direction: column;
    }

    .health-item {
        min-width: auto;
    }

    .queue-stats-row,
    .error-stats-row {
        flex-wrap: wrap;
    }

    .queue-stat,
    .error-stat {
        min-width: calc(50% - 0.25rem);
    }
}

/* ===========================
   Analytics Tab Styles
   =========================== */

/* Summary Stats Row */
.analytics-summary-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.analytics-stat-card {
    flex: 1;
    min-width: 120px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.analytics-stat-card .stat-icon {
    font-size: 1.5rem;
    opacity: 0.8;
}

.analytics-stat-card .stat-content {
    display: flex;
    flex-direction: column;
}

.analytics-stat-card .stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.2;
}

.analytics-stat-card .stat-label {
    font-size: 0.6875rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.analytics-stat-card.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-color: #b1dfbb;
}

.analytics-stat-card.success .stat-value {
    color: #155724;
}

.analytics-stat-card.highlight {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: #90caf9;
}

.analytics-stat-card.highlight .stat-value {
    color: #1565c0;
}

/* Charts Row */
.analytics-charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 900px) {
    .analytics-charts-row {
        grid-template-columns: 1fr;
    }
}

.analytics-chart-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.chart-header h3 {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #2c3e50;
}

.chart-period-tabs {
    display: flex;
    gap: 0.25rem;
}

.period-tab {
    padding: 0.25rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 500;
    border: 1px solid #dee2e6;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.period-tab:hover {
    background: #f8f9fa;
}

.period-tab.active {
    background: #3498db;
    color: #fff;
    border-color: #3498db;
}

/* Analytics Bar Chart Container (inside analytics-chart-card) */
.analytics-chart-card .chart-container {
    height: 150px;
    display: flex;
    align-items: flex-end;
    gap: 3px;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 6px;
    overflow-x: auto;
    box-shadow: none;
    margin-bottom: 0;
}

.analytics-chart-card .chart-container .loading {
    width: 100%;
    text-align: center;
    align-self: center;
    color: #6c757d;
    font-size: 0.875rem;
}

/* Bar chart styles */
.chart-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 20px;
    flex: 1;
}

.chart-bar-stack {
    display: flex;
    flex-direction: column-reverse;
    width: 100%;
    height: 120px;
    position: relative;
}

.chart-bar {
    width: 100%;
    transition: height 0.3s;
}

.chart-bar.success {
    background: #27ae60;
    border-radius: 2px 2px 0 0;
}

.chart-bar.failed {
    background: #e74c3c;
}

.chart-bar.original {
    background: #3498db;
    border-radius: 2px 2px 0 0;
}

.chart-bar.transcoded {
    background: #9b59b6;
}

.chart-bar-label {
    font-size: 0.5625rem;
    color: #6c757d;
    margin-top: 0.25rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Chart Legend */
.chart-legend {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #6c757d;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.legend-color.success {
    background: #27ae60;
}

.legend-color.failed {
    background: #e74c3c;
}

.legend-color.original {
    background: #3498db;
}

.legend-color.transcoded {
    background: #9b59b6;
}

/* Token Details Table Section */
.analytics-table-section {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.analytics-table-section h3 {
    margin: 0;
    padding: 0.5rem 0.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.analytics-table-section .table-container {
    margin: 0;
}

.analytics-table-section table.compact-table {
    font-size: 0.8125rem;
}

.analytics-table-section table.compact-table th,
.analytics-table-section table.compact-table td {
    padding: 0.5rem 0.75rem;
}

/* Success Rate Bar */
.success-rate-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rate-bar-bg {
    flex: 1;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    min-width: 50px;
}

.rate-bar-fill {
    height: 100%;
    background: #27ae60;
    transition: width 0.3s;
}

.rate-bar-fill.warning {
    background: #f39c12;
}

.rate-bar-fill.danger {
    background: #e74c3c;
}

.rate-text {
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 36px;
    text-align: right;
}

/* Success/Failed Count Display */
.count-display {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
}

.count-display .success {
    color: #27ae60;
    font-weight: 600;
}

.count-display .divider {
    color: #adb5bd;
}

.count-display .failed {
    color: #e74c3c;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .analytics-summary-row {
        flex-direction: column;
    }

    .analytics-stat-card {
        min-width: auto;
    }

    .analytics-charts-row {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   Videos Tab Styles
   =========================== */

/* Controls Bar */
.videos-controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.videos-filters {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

/* View Toggle */
.videos-view-toggle {
    display: flex;
    gap: 0.25rem;
    background: #e9ecef;
    padding: 0.25rem;
    border-radius: 6px;
}

.view-btn {
    padding: 0.375rem 0.75rem;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 4px;
    font-size: 1rem;
    color: #6c757d;
    transition: all 0.2s;
}

.view-btn:hover {
    background: rgba(255,255,255,0.5);
}

.view-btn.active {
    background: #fff;
    color: #3498db;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* View Containers */
.videos-view {
    display: none;
}

.videos-view.active {
    display: block;
}

/* Videos Table */
.videos-table {
    font-size: 0.875rem;
}

.videos-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #6c757d;
    background: #f8f9fa;
    padding: 0.625rem 0.5rem;
}

.videos-table td {
    padding: 0.625rem 0.5rem;
    vertical-align: middle;
}

.videos-table .actions {
    white-space: nowrap;
}

.videos-table .actions .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    margin: 0 0.125rem;
}

/* Videos Grid */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

/* Video Card */
.video-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s;
}

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

.video-card-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    background: #1a1a2e;
    overflow: hidden;
}

.video-card-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-card-thumbnail .no-thumbnail {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: #4a4a6a;
}

.video-card-duration {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 0.125rem 0.375rem;
    border-radius: 3px;
    font-size: 0.6875rem;
    font-weight: 500;
}

.video-card-status {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
}

.video-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    opacity: 0;
    transition: opacity 0.2s;
    cursor: pointer;
}

.video-card-thumbnail:hover .video-card-play {
    opacity: 1;
}

.video-card-body {
    padding: 0.75rem;
}

.video-card-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.375rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-card-meta {
    display: flex;
    gap: 0.5rem;
    font-size: 0.6875rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.video-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.video-card-actions {
    display: flex;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.video-card-actions .btn {
    flex: 1;
    padding: 0.25rem 0.375rem;
    font-size: 0.6875rem;
    min-width: auto;
}

/* Status Badge in Grid */
.video-card .status-badge {
    padding: 0.125rem 0.375rem;
    border-radius: 3px;
    font-size: 0.625rem;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .videos-controls-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .videos-filters {
        justify-content: flex-start;
    }

    .videos-view-toggle {
        align-self: flex-end;
    }

    .videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

@media (max-width: 480px) {
    .videos-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .video-card-body {
        padding: 0.5rem;
    }

    .video-card-actions .btn {
        font-size: 0.625rem;
        padding: 0.2rem 0.25rem;
    }
}

/* ===========================
   Testing Tab - Redesigned Layout
   =========================== */

/* Header */
.testing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.testing-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
}

.testing-header-actions {
    display: flex;
    gap: 0.5rem;
}

/* Two Column Layout */
.testing-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 1000px) {
    .testing-two-column {
        grid-template-columns: 1fr;
    }
}

.testing-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Testing Card */
.testing-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.testing-card-full {
    height: 100%;
}

.testing-step-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #e9ecef;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 700;
}

.testing-step-header h3 {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #2c3e50;
}

.testing-card-body {
    padding: 1rem;
}

/* File Upload Zone */
.file-upload-zone {
    position: relative;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 0.75rem;
    background: #fafbfc;
}

.file-upload-zone:hover {
    border-color: #3498db;
    background: #f0f7ff;
}

.file-upload-zone.dragover {
    border-color: #27ae60;
    background: #e8f5e9;
}

.file-input-hidden {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    pointer-events: none;
}

.upload-icon {
    font-size: 2rem;
}

.upload-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: #495057;
}

.upload-hint {
    font-size: 0.75rem;
    color: #6c757d;
}

/* File Info */
.file-info {
    font-size: 0.8125rem;
    color: #495057;
    padding: 0.5rem 0.75rem;
    background: #e3f2fd;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    display: none;
}

.file-info.visible {
    display: block;
}

/* Upload Progress */
.upload-progress {
    margin-bottom: 0.75rem;
}

.upload-progress .progress-bar-wrapper {
    height: 24px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.upload-progress .progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db 0%, #2ecc71 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    transition: width 0.3s;
}

.upload-progress .progress-text {
    font-size: 0.75rem;
    color: #6c757d;
    text-align: center;
}

/* Button Block */
.btn-block {
    width: 100%;
    margin-bottom: 0.75rem;
}

/* Input Row */
.input-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.input-group.flex-grow {
    flex: 1;
    min-width: 150px;
}

.input-group label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    padding: 0.5rem 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
}

.form-select {
    padding: 0.5rem 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.875rem;
    background: white;
    cursor: pointer;
}

/* Button Row */
.button-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

/* Result Box */
.result-box {
    margin-top: 0.75rem;
}

.result-box:empty {
    display: none;
}

.result-success {
    background: #d4edda;
    color: #155724;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.8125rem;
}

.result-error {
    background: #f8d7da;
    color: #721c24;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.8125rem;
}

.result-info {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 0.75rem;
    font-size: 0.8125rem;
}

.result-info .info-grid {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 0.375rem 0.75rem;
}

.result-info .info-label {
    font-weight: 600;
    color: #495057;
}

.result-info .info-value {
    color: #212529;
}

/* Video Player Container */
.video-player-container {
    margin-top: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    background: #1a1a2e;
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: #2c3e50;
    color: white;
    font-size: 0.8125rem;
    font-weight: 500;
}

.player-header .btn {
    background: rgba(255,255,255,0.15);
    color: white;
    border: none;
}

.player-header .btn:hover {
    background: rgba(255,255,255,0.25);
}

.test-video-player {
    width: 100%;
    max-height: 400px;
    display: block;
    background: black;
}

.player-info {
    padding: 0.5rem 0.75rem;
    background: #f8f9fa;
    font-size: 0.75rem;
    color: #6c757d;
}

.player-info code {
    font-size: 0.6875rem;
    word-break: break-all;
    background: #e9ecef;
    padding: 0.125rem 0.25rem;
    border-radius: 3px;
}

/* API Log Card */
.testing-log-card {
    margin-top: 0;
}

.testing-log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    transition: background 0.2s;
}

.testing-log-header:hover {
    background: #e9ecef;
}

.testing-log-header h3 {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #2c3e50;
}

.log-header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.log-count {
    font-size: 0.75rem;
    color: #6c757d;
    background: #e9ecef;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
}

.log-toggle {
    font-size: 0.75rem;
    color: #6c757d;
    transition: transform 0.2s;
}

.log-toggle.collapsed {
    transform: rotate(-90deg);
}

.testing-log-body {
    max-height: 300px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.testing-log-body.collapsed {
    max-height: 0;
}

.compact-table-container {
    max-height: 250px;
    overflow-y: auto;
}

.empty-log {
    text-align: center;
    color: #6c757d;
    padding: 2rem !important;
    font-style: italic;
}

/* Status Display in Result */
.status-display {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.success { background: #27ae60; }
.status-dot.processing { background: #3498db; animation: pulse 1.5s infinite; }
.status-dot.queued { background: #f39c12; }
.status-dot.failed { background: #e74c3c; }
.status-dot.pending { background: #95a5a6; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Responsive */
@media (max-width: 768px) {
    .testing-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .input-row {
        flex-direction: column;
    }

    .input-group.flex-grow {
        min-width: auto;
    }

    .button-row {
        flex-direction: column;
    }

    .button-row .btn {
        width: 100%;
    }
}

/* ========== Services Status Styles ========== */

.services-stats-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.service-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.service-stat-label {
    font-size: 0.8125rem;
    color: #6c757d;
}

.service-stat.running .service-stat-value {
    color: #27ae60;
}

.service-stat.stopped .service-stat-value {
    color: #95a5a6;
}

.service-stat.failed .service-stat-value {
    color: #e74c3c;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.75rem;
}

.service-card {
    display: flex;
    align-items: flex-start;
    padding: 0.875rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #95a5a6;
    transition: all 0.2s ease;
}

.service-card:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.service-card.running {
    border-left-color: #27ae60;
}

.service-card.stopped {
    border-left-color: #95a5a6;
}

.service-card.failed {
    border-left-color: #e74c3c;
    background: #fff5f5;
}

.service-card.unknown {
    border-left-color: #f39c12;
}

.service-icon {
    font-size: 1.5rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.service-info {
    flex: 1;
    min-width: 0;
}

.service-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.service-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: #2c3e50;
}

.service-status-badge {
    font-size: 0.6875rem;
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.service-status-badge.running {
    background: #d4edda;
    color: #155724;
}

.service-status-badge.stopped {
    background: #e2e3e5;
    color: #6c757d;
}

.service-status-badge.failed {
    background: #f8d7da;
    color: #721c24;
}

.service-status-badge.unknown {
    background: #fff3cd;
    color: #856404;
}

.service-desc {
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 0.375rem;
}

.service-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.6875rem;
    color: #95a5a6;
}

.service-detail {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.service-detail-icon {
    font-size: 0.75rem;
}

.service-actions {
    display: flex;
    gap: 0.25rem;
    margin-left: 0.5rem;
}

.service-action-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.6875rem;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.service-action-btn:hover {
    background: #f8f9fa;
    border-color: #3498db;
    color: #3498db;
}

.service-action-btn.restart:hover {
    background: #fff3cd;
    border-color: #f39c12;
    color: #f39c12;
}

.service-error {
    font-size: 0.6875rem;
    color: #e74c3c;
    margin-top: 0.375rem;
    padding: 0.375rem;
    background: #fff5f5;
    border-radius: 4px;
    word-break: break-word;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .services-stats-row {
        justify-content: space-around;
    }
}
