/* File State Scanner - inherits sqmedia-section styles */
.sqmedia-file-state-scanner h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Scanner Introduction */
.sqmedia-scanner-intro {
    background: #f8f9fa;
    border: 1px solid #e2e4e7;
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 24px;
    font-size: 13px;
    line-height: 1.6;
    color: #50575e;
}

.sqmedia-scanner-intro p {
    margin: 0 0 12px 0;
}

.sqmedia-scanner-intro p:last-child {
    margin-bottom: 0;
}

.sqmedia-scanner-intro ul {
    margin: 12px 0;
    padding-left: 20px;
}

.sqmedia-scanner-intro li {
    margin-bottom: 8px;
}

.sqmedia-scanner-intro strong {
    color: #1d2327;
}

.sqmedia-intro-usecases {
    font-style: italic;
    color: #646970;
}

/* Alert Boxes */
.sqmedia-alert {
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
}

.sqmedia-alert-icon {
    flex-shrink: 0;
    font-size: 16px;
}

.sqmedia-alert-info {
    background: #e8f4fc;
    border: 1px solid #2271b1;
    color: #1d4f7a;
}

.sqmedia-alert-success {
    background: #edfaef;
    border: 1px solid #00a32a;
    color: #0a5c1f;
}

.sqmedia-alert-warning {
    background: #fcf9e8;
    border: 1px solid #dba617;
    color: #6e5b12;
}

.sqmedia-alert-error {
    background: #fcf0f1;
    border: 1px solid #d63638;
    color: #8a1c1f;
}

/* Phase Card */
.sqmedia-phase-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    margin-bottom: 20px;
    overflow: hidden;
}

.sqmedia-phase-card.sqmedia-phase-disabled {
    opacity: 0.6;
}

.sqmedia-phase-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: #f6f7f7;
    border-bottom: 1px solid #c3c4c7;
}

.sqmedia-phase-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sqmedia-phase-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sqmedia-phase-header-right .button {
    margin: 0;
    padding: 6px 14px;
    font-size: 13px;
    height: auto;
    line-height: 1.4;
}

.sqmedia-phase-header-right .button-primary {
    background: #2271b1;
    border-color: #2271b1;
}

.sqmedia-phase-header-right .button-primary:hover {
    background: #135e96;
    border-color: #135e96;
}

.sqmedia-phase-number {
    width: 32px;
    height: 32px;
    background: #2271b1;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.sqmedia-phase-number.complete { background: #00a32a; }
.sqmedia-phase-number.warning { background: #dba617; }
.sqmedia-phase-number.critical { background: #d63638; }

.sqmedia-phase-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
}

.sqmedia-phase-subtitle {
    font-size: 12px;
    color: #646970;
}

.sqmedia-phase-body {
    padding: 20px;
}

.sqmedia-phase-description {
    color: #646970;
    margin-bottom: 10px;
}

.sqmedia-phase-technical {
    font-size: 12px;
    color: #888;
    font-style: italic;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 2px solid #ddd;
}

.sqmedia-hint {
    font-size: 12px;
    color: #646970;
    margin-top: 10px;
}

/* Status Badge */
.sqmedia-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
}

.sqmedia-status-not-scanned { background: #e7e8ea; color: #646970; }
.sqmedia-status-scanning { background: #d1ecf1; color: #0c5460; }
.sqmedia-status-fixing { background: #d1ecf1; color: #0c5460; }
.sqmedia-status-clean { background: #d4edda; color: #0a5c1f; }
.sqmedia-status-issues { background: #fff3cd; color: #856404; }
.sqmedia-status-critical { background: #f8d7da; color: #721c24; }

/* Hide summary elements during scanning/fixing states */
.sqmedia-phase-card[data-status="scanning"] .sqmedia-critical-section,
.sqmedia-phase-card[data-status="scanning"] .sqmedia-verification-row,
.sqmedia-phase-card[data-status="scanning"] .sqmedia-cascade-report,
.sqmedia-phase-card[data-status="building_index"] .sqmedia-critical-section,
.sqmedia-phase-card[data-status="building_index"] .sqmedia-verification-row,
.sqmedia-phase-card[data-status="building_index"] .sqmedia-cascade-report,
.sqmedia-phase-card[data-status="fixing"] .sqmedia-critical-section,
.sqmedia-phase-card[data-status="fixing"] .sqmedia-verification-row,
.sqmedia-phase-card[data-status="fixing"] .sqmedia-cascade-report {
    display: none !important;
}

/* Progress Bar */
.sqmedia-progress-container {
    margin: 15px 0;
}

.sqmedia-progress-bar {
    height: 20px;
    background: #dcdcde;
    border-radius: 10px;
    overflow: hidden;
}

.sqmedia-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2271b1, #4f94d4);
    border-radius: 10px;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}

.sqmedia-progress-fill.sqmedia-progress-paused {
    background: linear-gradient(90deg, #dba617, #f0c14b);
}

.sqmedia-progress-fill.sqmedia-progress-indeterminate {
    background: linear-gradient(90deg, #2271b1 0%, #4f94d4 50%, #2271b1 100%);
    background-size: 200% 100%;
    animation: sqmedia-progress-shimmer 1.5s ease-in-out infinite;
}

@keyframes sqmedia-progress-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.sqmedia-paused-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
}

.sqmedia-status-badge.paused {
    background: #fff3cd;
    color: #856404;
}

.sqmedia-progress-text {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 8px;
    font-size: 12px;
    color: #646970;
}

.sqmedia-progress-text .sqmedia-spinner {
    flex-shrink: 0;
}

.sqmedia-progress-text [id$="-elapsed"]:not(:empty)::before {
    content: "•";
    margin-right: 8px;
    color: #c3c4c7;
}

/* Summary Grid */
.sqmedia-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.sqmedia-summary-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.sqmedia-summary-item {
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sqmedia-summary-critical { background: #fcf0f1; border-color: #d63638; }
.sqmedia-summary-warning { background: #fcf9e8; border-color: #dba617; }
.sqmedia-summary-success { background: #edfaef; border-color: #00a32a; }

.sqmedia-summary-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.sqmedia-icon-red { background: #f8d7da; color: #d63638; }
.sqmedia-icon-orange { background: #fff3cd; color: #dba617; }
.sqmedia-icon-blue { background: #d1ecf1; color: #2271b1; }
.sqmedia-icon-green { background: #d4edda; color: #00a32a; }
.sqmedia-icon-gray { background: #e7e8ea; color: #646970; }

.sqmedia-summary-count {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
}

.sqmedia-summary-label {
    font-size: 12px;
    color: #646970;
}

/* Button Group */
.sqmedia-button-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* Last Scan */
.sqmedia-last-scan {
    font-size: 12px;
    color: #646970;
    margin-bottom: 15px;
}

/* Critical Section */
.sqmedia-critical-section {
    background: #fcf0f1;
    border: 1px solid #d63638;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.sqmedia-critical-header {
    font-weight: 600;
    color: #8a1c1f;
    margin-bottom: 10px;
}

.sqmedia-critical-description {
    font-size: 13px;
    color: #721c24;
    margin-bottom: 10px;
}

.sqmedia-critical-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sqmedia-critical-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f1b8ba;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.sqmedia-critical-list li:last-child {
    border-bottom: none;
}

.sqmedia-critical-reason {
    color: #721c24;
    font-size: 12px;
}

/* Details Panel */
.sqmedia-details-panel {
    margin-top: 20px;
    border-top: 1px solid #dcdcde;
    padding-top: 20px;
}

.sqmedia-details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.sqmedia-details-header h3 {
    margin: 0;
}

/* Filter Bar */
.sqmedia-filter-bar {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 10px 15px;
    background: #f6f7f7;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 13px;
}

.sqmedia-filter-bar label {
    color: #646970;
}

.sqmedia-filter-bar select,
.sqmedia-filter-bar input {
    padding: 5px 10px;
    border: 1px solid #dcdcde;
    border-radius: 3px;
}

.sqmedia-filter-search {
    min-width: 200px;
}

/* Details Table */
.sqmedia-details-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.sqmedia-details-table th,
.sqmedia-details-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #dcdcde;
}

.sqmedia-details-table th {
    background: #f6f7f7;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #646970;
}

.sqmedia-details-table tr:hover {
    background: #f9f9f9;
}

.sqmedia-attachment-id a {
    font-family: monospace;
    color: #2271b1;
    text-decoration: none;
}

.sqmedia-attachment-id a:hover {
    text-decoration: underline;
}

.sqmedia-filename {
    font-weight: 500;
}

.sqmedia-issues-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

/* File-level issue tags - consistent yellow/amber for all */
.sqmedia-issue-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    margin: 2px;
    background: #fff3cd;
    color: #856404;
}

/* Issue severity colors (for summary badges, not file-level tags) */
.sqmedia-issue-error { background: #f8d7da; color: #721c24; }
.sqmedia-issue-warning { background: #fff3cd; color: #856404; }
.sqmedia-issue-info { background: #d1ecf1; color: #0c5460; }
.sqmedia-issue-default { background: #e7e8ea; color: #495057; }

/* Legacy issue type colors - kept for backward compatibility but not used in file view */
.sqmedia-issue-corruption { background: #f8d7da; color: #721c24; }
.sqmedia-issue-dimension { background: #fff3cd; color: #856404; }
.sqmedia-issue-missing { background: #d1ecf1; color: #0c5460; }
.sqmedia-issue-deprecated { background: #fff3cd; color: #856404; }
.sqmedia-issue-webp { background: #e2d5f1; color: #5a3d7a; }
.sqmedia-issue-upload { background: #d1ecf1; color: #0c5460; }
.sqmedia-issue-download { background: #d1ecf1; color: #0c5460; }
.sqmedia-issue-generate { background: #fff3cd; color: #856404; }
.sqmedia-issue-critical { background: #f8d7da; color: #721c24; }

/* Cascading Report Styles */
.sqmedia-cascade-report {
    background: #f9f9f9;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    padding: 15px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.sqmedia-cascade-section {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e7e8ea;
}

.sqmedia-cascade-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sqmedia-cascade-header {
    font-size: 13px;
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 8px;
}

.sqmedia-cascade-items {
    padding-left: 8px;
}

.sqmedia-cascade-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 3px 0;
    font-size: 13px;
    line-height: 1.5;
}

.sqmedia-cascade-icon {
    flex-shrink: 0;
    width: 16px;
    text-align: center;
    font-size: 12px;
}

.sqmedia-cascade-text {
    color: #50575e;
}

.sqmedia-cascade-item.sqmedia-cascade-success .sqmedia-cascade-icon {
    color: #00a32a;
}

.sqmedia-cascade-item.sqmedia-cascade-success .sqmedia-cascade-text {
    color: #1d2327;
}

.sqmedia-cascade-item.sqmedia-cascade-warning .sqmedia-cascade-icon {
    color: #dba617;
}

.sqmedia-cascade-item.sqmedia-cascade-warning .sqmedia-cascade-text {
    color: #1d2327;
}

.sqmedia-cascade-item.sqmedia-cascade-error .sqmedia-cascade-icon {
    color: #d63638;
}

.sqmedia-cascade-item.sqmedia-cascade-error .sqmedia-cascade-text {
    color: #8a1f1f;
}

.sqmedia-cascade-item.sqmedia-cascade-info .sqmedia-cascade-icon {
    color: #72aee6;
}

.sqmedia-cascade-item.sqmedia-cascade-info .sqmedia-cascade-text {
    color: #646970;
}

.sqmedia-cascade-action {
    color: #2271b1;
    font-size: 12px;
    font-style: italic;
}

.sqmedia-cascade-section.sqmedia-cascade-types {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sqmedia-cascade-types-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding-left: 8px;
}

.sqmedia-cascade-type {
    font-size: 12px;
    color: #50575e;
}

/* Issues list in table */
.sqmedia-issues-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

/* Tabs Navigation */
.sqmedia-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 15px;
    border-bottom: 2px solid #dcdcde;
    padding-bottom: 10px;
}

.sqmedia-tab-btn {
    background: #f0f0f1;
    border: 1px solid #dcdcde;
    border-radius: 4px 4px 0 0;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #50575e;
    transition: all 0.15s ease;
}

.sqmedia-tab-btn:hover {
    background: #fff;
    border-color: #2271b1;
    color: #2271b1;
}

.sqmedia-tab-btn.active {
    background: #fff;
    border-color: #2271b1;
    border-bottom-color: #fff;
    color: #2271b1;
    margin-bottom: -2px;
}

.sqmedia-tab-count {
    display: inline-block;
    background: #dcdcde;
    color: #50575e;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 4px;
}

.sqmedia-tab-btn.active .sqmedia-tab-count {
    background: #2271b1;
    color: #fff;
}

/* Success tab styles */
.sqmedia-tab-btn.sqmedia-tab-success {
    color: #00a32a;
}

.sqmedia-tab-btn.sqmedia-tab-success:hover {
    border-color: #00a32a;
    color: #00a32a;
}

.sqmedia-tab-btn.sqmedia-tab-success.active {
    border-color: #00a32a;
    border-bottom-color: #fff;
    color: #00a32a;
}

.sqmedia-tab-check {
    display: inline-block;
    color: #00a32a;
    font-size: 12px;
    margin-left: 4px;
}

.sqmedia-tab-description-area {
    margin-bottom: 15px;
}

.sqmedia-tab-description {
    background: #f6f7f7;
    border-left: 4px solid #72aee6;
    padding: 10px 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #50575e;
}

.sqmedia-tab-description a {
    color: #2271b1;
    text-decoration: none;
}

.sqmedia-tab-description a:hover {
    text-decoration: underline;
}

.sqmedia-tab-success-message {
    background: #d4edda;
    border-left: 4px solid #00a32a;
    padding: 15px 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sqmedia-tab-success-message .sqmedia-success-icon {
    font-size: 24px;
}

.sqmedia-tab-success-message .sqmedia-success-text {
    font-size: 14px;
    font-weight: 500;
    color: #0f5132;
}

.sqmedia-tab-success-message .sqmedia-success-count {
    font-size: 13px;
    color: #198754;
    margin-left: auto;
}

.sqmedia-all-clear {
    text-align: center;
    padding: 40px 20px;
    background: #f0fdf4;
    border-radius: 8px;
    border: 1px solid #bbf7d0;
}

.sqmedia-all-clear-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}

.sqmedia-all-clear p {
    font-size: 16px;
    color: #166534;
    margin: 0;
}

.sqmedia-search-bar {
    margin-bottom: 15px;
}

.sqmedia-search-bar input {
    width: 300px;
    max-width: 100%;
}

/* Row states */
.sqmedia-row-fixed {
    background: #d4edda !important;
}

.sqmedia-row-error {
    background: #f8d7da !important;
}

.sqmedia-row-error .sqmedia-fix-single-btn {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
}

/* Scan controls */
.sqmedia-scan-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.sqmedia-scan-controls .button-link {
    color: #b32d2e;
}

.sqmedia-scan-controls .button-link:hover {
    color: #8a1f1f;
}

/* Issue details in table */
.sqmedia-issue-detail {
    display: block;
    font-size: 12px;
    margin: 2px 0;
    padding: 4px 8px;
    background: #f9f9f9;
    border-radius: 3px;
    border-left: 3px solid #dcdcde;
}

.sqmedia-issue-detail.sqmedia-issue-error {
    border-left-color: #dc3545;
    background: #fff5f5;
}

.sqmedia-issue-detail.sqmedia-issue-warning {
    border-left-color: #ffc107;
    background: #fffbf0;
}

.sqmedia-issue-detail.sqmedia-issue-info {
    border-left-color: #0dcaf0;
    background: #f0fcff;
}

.sqmedia-issue-size-name {
    font-weight: 600;
    color: #1d2327;
}

.sqmedia-issue-dimensions {
    color: #646970;
    font-family: monospace;
}

.sqmedia-issue-arrow {
    color: #2271b1;
    margin: 0 4px;
}

/* Detailed issues in table */
.sqmedia-issues-detailed {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sqmedia-issue-group {
    border-left: 3px solid #dcdcde;
    padding-left: 10px;
    margin-bottom: 4px;
}

.sqmedia-issue-group.sqmedia-issue-error {
    border-left-color: #dc3545;
}

.sqmedia-issue-group.sqmedia-issue-warning {
    border-left-color: #f0c33c;
}

.sqmedia-issue-group.sqmedia-issue-info {
    border-left-color: #72aee6;
}

.sqmedia-issue-group-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.sqmedia-issue-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
}

.sqmedia-issue-type-badge.sqmedia-issue-error {
    background: #f8d7da;
    color: #721c24;
}

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

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

.sqmedia-issue-type-badge.sqmedia-issue-default {
    background: #e7e8ea;
    color: #495057;
}

.sqmedia-issue-count {
    font-size: 11px;
    color: #646970;
}

.sqmedia-issue-group-items {
    padding-left: 5px;
}

.sqmedia-issue-item {
    font-size: 12px;
    padding: 3px 0;
    color: #1d2327;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sqmedia-issue-item .sqmedia-issue-size-name {
    font-weight: 600;
    color: #1d2327;
}

.sqmedia-issue-item .sqmedia-issue-dimensions {
    font-family: monospace;
    background: #f0f0f1;
    padding: 1px 4px;
    border-radius: 2px;
    color: #50575e;
}

.sqmedia-issue-item .sqmedia-issue-expected {
    background: #d4edda;
    color: #155724;
}

.sqmedia-issue-item .sqmedia-issue-arrow {
    color: #2271b1;
    font-weight: bold;
}

.sqmedia-issue-item .sqmedia-issue-display {
    color: #50575e;
}

/* Table cell for issues */
.sqmedia-issues-cell {
    vertical-align: middle;
    padding: 8px !important;
}

/* Compact issue badges */
.sqmedia-issues-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.sqmedia-issue-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
}

.sqmedia-issue-badge.sqmedia-issue-error {
    background: #f8d7da;
    color: #721c24;
}

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

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

.sqmedia-issue-badge.sqmedia-issue-default {
    background: #e7e8ea;
    color: #495057;
}

.sqmedia-badge-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: rgba(0,0,0,0.15);
    font-size: 10px;
    font-weight: 600;
}

/* Expand button */
.sqmedia-expand-row {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    padding: 4px 8px;
    color: #2271b1;
    transition: transform 0.2s;
}

.sqmedia-expand-row:hover {
    color: #135e96;
}

/* File details expanded row */
.sqmedia-file-details-row td {
    padding: 0 !important;
    background: #f9f9f9;
}

.sqmedia-file-details {
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.sqmedia-file-details-table {
    width: 100%;
    font-size: 12px;
    border-collapse: collapse;
}

.sqmedia-file-details-table th {
    text-align: left;
    padding: 8px 12px;
    background: #f0f0f1;
    border-bottom: 1px solid #dcdcde;
    font-weight: 600;
    color: #1d2327;
}

.sqmedia-file-details-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.sqmedia-file-details-table tr:last-child td {
    border-bottom: none;
}

.sqmedia-file-details-table tr.sqmedia-row-ok {
    background: #fff;
}

.sqmedia-file-details-table tr.sqmedia-row-has-issues {
    background: #fffbf0;
}

/* Size badges */
.sqmedia-size-badge {
    display: inline-block;
    background: #e7e8ea;
    color: #1d2327;
    padding: 2px 8px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 11px;
}

.sqmedia-webp-badge {
    background: #e8f4f8;
    color: #0c5460;
}

.sqmedia-webp-ext {
    font-size: 10px;
    color: #0c5460;
    margin-left: 2px;
}

.sqmedia-webp-separator {
    background: #f0f6fc !important;
    border-top: 2px solid #c3d9ed !important;
}

.sqmedia-webp-separator td {
    padding: 6px 12px !important;
}

.sqmedia-webp-section-label {
    font-size: 11px;
    font-weight: 600;
    color: #0c5460;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sqmedia-webp-row {
    background: #f8fbfd !important;
}

.sqmedia-webp-row.sqmedia-row-has-issues {
    background: #fef9f0 !important;
}

.sqmedia-missing-badge {
    display: inline-block;
    background: #fff3cd;
    color: #856404;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 10px;
    margin-left: 4px;
}

.sqmedia-deprecated-badge {
    display: inline-block;
    background: #fff3cd;
    color: #856404;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 10px;
    margin-left: 4px;
}

.sqmedia-custom-badge {
    display: inline-block;
    background: #e8f4fd;
    color: #1d4ed8;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 10px;
    margin-left: 4px;
}

/* Dimensions */
.sqmedia-dimensions {
    font-family: monospace;
    color: #1d2327;
}

.sqmedia-dimensions.sqmedia-expected {
    color: #856404;
}

.sqmedia-to-create {
    color: #856404;
    font-size: 11px;
}

.sqmedia-no-dimensions {
    color: #a7aaad;
}

/* Status */
.sqmedia-status-ok {
    color: #00a32a;
}

.sqmedia-status-unverified {
    color: #dba617;
}

.sqmedia-unverified-note {
    display: inline-block;
    margin-left: 6px;
    color: #996800;
    font-size: 11px;
    font-style: italic;
}

.sqmedia-status-issue {
    display: inline-block;
    margin-right: 8px;
}

.sqmedia-status-issue .sqmedia-arrow {
    color: #2271b1;
    font-weight: bold;
}

/* Phase 2 location badges */
.sqmedia-loc-local {
    color: #00a32a;
    font-weight: 500;
}

.sqmedia-loc-bucket {
    color: #2271b1;
    font-weight: 500;
}

.sqmedia-loc-missing {
    color: #d63638;
    font-weight: 500;
}

.sqmedia-file-location {
    white-space: nowrap;
}

.sqmedia-file-name {
    font-family: monospace;
    font-size: 11px;
}

/* Pagination */
.sqmedia-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #dcdcde;
    font-size: 13px;
}

.sqmedia-pagination-info {
    color: #646970;
}

.sqmedia-pagination-buttons {
    display: flex;
    gap: 5px;
}

.sqmedia-pagination-btn {
    padding: 5px 10px;
    border: 1px solid #dcdcde;
    background: #fff;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.sqmedia-pagination-btn:hover {
    background: #f6f7f7;
}

.sqmedia-pagination-btn.active {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
}

.sqmedia-pagination-btn[disabled],
.sqmedia-pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.sqmedia-pagination-btn.sqmedia-pagination-prev,
.sqmedia-pagination-btn.sqmedia-pagination-next {
    font-weight: bold;
    padding: 5px 8px;
}

.sqmedia-pagination-ellipsis {
    padding: 5px 8px;
    color: #666;
}

@media (max-width: 782px) {
    .sqmedia-summary-grid {
        grid-template-columns: 1fr 1fr;
    }

    .sqmedia-summary-grid-3 {
        grid-template-columns: 1fr 1fr;
    }

    .sqmedia-button-group {
        flex-wrap: wrap;
    }

    .sqmedia-filter-bar {
        flex-wrap: wrap;
    }
}
