/* Admin styles for Selective Thumbnail Regenerator - Modern Design synced with RVS Database Doctor */

@view-transition {
    navigation: auto;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* =====================================================================
 * Design tokens - single source of truth for colors / spacing / radius /
 * shadows / typography. All component rules reference these via var(--strgrtr-*).
 * Synced with RVS Database Doctor design system.
 * ===================================================================== */
:root {
    --strgrtr-color-primary:       var(--wp-admin-theme-color, #3858e9);
    --strgrtr-color-primary-2:     var(--wp-admin-theme-color-darker, #213ecb);
    --strgrtr-color-primary-soft:  rgba(56, 88, 233, 0.1);
    --strgrtr-color-primary-border: rgba(56, 88, 233, 0.25);
    --strgrtr-color-success:       #10b981;
    --strgrtr-color-success-soft:  #d1fae5;
    --strgrtr-color-success-hover: #059669;
    --strgrtr-color-warn:          #f59e0b;
    --strgrtr-color-warn-soft:     #fef3c7;
    --strgrtr-color-danger:        #f43f5e;
    --strgrtr-color-danger-soft:   #ffe4e6;
    --strgrtr-color-danger-hover:  #e11d48;
    --strgrtr-color-info:          #0ea5e9;

    --strgrtr-color-bg:            #ffffff;
    --strgrtr-color-bg-alt:        #f8fafc;
    --strgrtr-color-bg-panel:      #fafafb;
    --strgrtr-color-bg-code:       #0f172a;

    --strgrtr-color-text:          #0f172a;
    --strgrtr-color-text-muted:    #64748b;
    --strgrtr-color-text-soft:     #475569;
    --strgrtr-color-text-faint:    #94a3b8;

    --strgrtr-color-border:        #e2e8f0;
    --strgrtr-color-border-soft:   #f1f5f9;
    --strgrtr-color-border-strong: #cbd5e1;

    --strgrtr-color-overlay:       rgba(15, 23, 42, 0.55);
    --strgrtr-color-toast-bg:      #0f172a;
    --strgrtr-color-toast-text:    #ffffff;

    --strgrtr-radius-sm:   4px;
    --strgrtr-radius-md:   8px;
    --strgrtr-radius-lg:   12px;
    --strgrtr-radius-pill: 999px;

    --strgrtr-space-xs:   4px;
    --strgrtr-space-sm:   8px;
    --strgrtr-space-md:  12px;
    --strgrtr-space-lg:  16px;
    --strgrtr-space-xl:  24px;

    --strgrtr-shadow-card:   0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --strgrtr-shadow-card-2: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.08);
    --strgrtr-shadow-modal:  0 12px 48px rgba(15, 23, 42, 0.35);
    --strgrtr-shadow-toast:  0 6px 24px rgba(15, 23, 42, 0.25);

    --strgrtr-font-size-xs:  11px;
    --strgrtr-font-size-sm:  12px;
    --strgrtr-font-size-md:  13px;
    --strgrtr-font-size-lg:  16px;
    --strgrtr-font-size-xl:  20px;

    --strgrtr-transition-fast: 0.15s ease;
    --strgrtr-transition-base: 0.22s ease;
}

.strgrtr-wrap {
    font-family: inherit;
    color: var(--strgrtr-color-text);
    max-width: 1200px;
    margin: 20px auto 40px 0;
    padding-right: 20px;
}

/* Header Section - Modern Gradient Premium Style synced with RVS Database Doctor */
.strgrtr-header {
    background: linear-gradient(135deg, var(--strgrtr-color-primary-2) 0%, var(--strgrtr-color-primary) 100%);
    border-radius: var(--strgrtr-radius-lg);
    padding: 30px;
    margin-bottom: 24px;
    box-shadow: var(--strgrtr-shadow-card);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.strgrtr-header::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}

.strgrtr-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: var(--strgrtr-font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 12px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.strgrtr-header .strgrtr-version {
    font-size: var(--strgrtr-font-size-sm);
    color: rgba(255, 255, 255, 0.7);
    font-weight: normal;
    vertical-align: middle;
    margin-left: 8px;
}

.strgrtr-header h1 {
    font-family: 'Inter', sans-serif !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}

.strgrtr-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-weight: 400;
    line-height: 1.5;
}

/* Dashboard Grid Layout */
.strgrtr-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 900px) {
    .strgrtr-dashboard-grid {
        grid-template-columns: 5fr 7fr;
    }
}

/* Card Styling - Modern card synced with RVS Database Doctor */
.strgrtr-card {
    background: var(--strgrtr-color-bg);
    border: 1px solid var(--strgrtr-color-border);
    border-radius: var(--strgrtr-radius-lg);
    box-shadow: var(--strgrtr-shadow-card);
    margin-bottom: 20px;
    transition: transform var(--strgrtr-transition-base), box-shadow var(--strgrtr-transition-base), border-color var(--strgrtr-transition-base);
    overflow: hidden;
}

.strgrtr-card:hover {
    box-shadow: var(--strgrtr-shadow-card-2);
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

/* Collapsible Card Header Styling using Dashicons */
.strgrtr-card-header {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid var(--strgrtr-color-border);
    background: var(--strgrtr-color-bg);
    position: relative;
    cursor: pointer;
    user-select: none;
}

.strgrtr-card-header::after {
    content: "\f142"; /* dashicons-arrow-up-alt2 */
    font-family: dashicons;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #787c82;
    transition: none;
}

.strgrtr-card-collapsed .strgrtr-card-header {
    border-bottom: none;
}

.strgrtr-card-collapsed .strgrtr-card-header::after {
    content: "\f140"; /* dashicons-arrow-down-alt2 */
}

.strgrtr-card-icon {
    font-size: 15px;
    margin-right: 10px;
    opacity: 0.8;
}

.strgrtr-card-header h2 {
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--strgrtr-color-text) !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-grow: 1;
    line-height: 1.4 !important;
}

.strgrtr-card-body {
    padding: 16px 15px;
}

/* Form Styling - Native WordPress styling */
.strgrtr-form-group {
    margin-bottom: 15px;
}

.strgrtr-form-group:last-child {
    margin-bottom: 0;
}

.strgrtr-form-group label {
    display: flex;
    justify-content: space-between;
    font-weight: 500;
    font-size: var(--strgrtr-font-size-md);
    color: var(--strgrtr-color-text);
    margin-bottom: 5px;
}

/* Modern inputs & selects synced with RVS Database Doctor */
.strgrtr-select {
    width: 100%;
    max-width: 100% !important;
    height: 40px !important;
    padding: 0 12px !important;
    border-radius: var(--strgrtr-radius-md) !important;
    border: 1px solid var(--strgrtr-color-border) !important;
    background-color: var(--strgrtr-color-bg) !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    color: var(--strgrtr-color-text) !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.strgrtr-select:focus {
    border-color: var(--strgrtr-color-primary) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
    outline: none !important;
}

.strgrtr-input {
    width: 100%;
    height: 40px !important;
    padding: 0 12px !important;
    border-radius: var(--strgrtr-radius-md) !important;
    border: 1px solid var(--strgrtr-color-border) !important;
    background-color: var(--strgrtr-color-bg) !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    color: var(--strgrtr-color-text) !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.strgrtr-input:focus {
    border-color: var(--strgrtr-color-primary) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
    outline: none !important;
}

.strgrtr-help {
    display: block;
    margin-top: var(--strgrtr-space-xs);
    font-size: var(--strgrtr-font-size-xs);
    color: var(--strgrtr-color-text-muted);
    line-height: 1.4;
}

/* Custom Sliders synced with RVS Database Doctor */
.strgrtr-range {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: var(--strgrtr-color-border-strong);
    outline: none;
    margin: 8px 0;
}

.strgrtr-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--strgrtr-color-primary);
    border: 2px solid var(--strgrtr-color-primary-2);
    cursor: pointer;
    transition: transform var(--strgrtr-transition-fast), box-shadow var(--strgrtr-transition-fast);
}

.strgrtr-range::-webkit-slider-thumb:hover {
    background: var(--strgrtr-color-primary-2);
    transform: scale(1.15);
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
}

.strgrtr-range-value {
    background: var(--strgrtr-color-primary-soft);
    color: var(--strgrtr-color-primary);
    font-size: var(--strgrtr-font-size-xs);
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--strgrtr-radius-sm);
    border: 1px solid var(--strgrtr-color-primary-border);
}

/* Custom Checkbox Toggle Switch synced with RVS Database Doctor */
.strgrtr-checkbox-group {
    padding: var(--strgrtr-space-md) 0 0 0;
    border-top: 1px dashed var(--strgrtr-color-border);
    margin-top: 15px;
}

.strgrtr-toggle-label {
    display: flex !important;
    align-items: flex-start;
    cursor: pointer;
    user-select: none;
}

.strgrtr-toggle-label input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.strgrtr-toggle-slider {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    width: 36px;
    height: 20px;
    background-color: var(--strgrtr-color-border-strong);
    border: 1px solid var(--strgrtr-color-border-strong);
    border-radius: 20px;
    margin-right: 10px;
    margin-top: 1px;
    transition: background-color var(--strgrtr-transition-fast), border-color var(--strgrtr-transition-fast);
}

.strgrtr-toggle-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: transform var(--strgrtr-transition-fast);
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.strgrtr-toggle-label input:checked + .strgrtr-toggle-slider {
    background-color: var(--strgrtr-color-primary);
    border-color: var(--strgrtr-color-primary-2);
}

.strgrtr-toggle-label input:checked + .strgrtr-toggle-slider:before {
    transform: translateX(16px);
}

.strgrtr-toggle-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.strgrtr-toggle-text strong {
    font-size: var(--strgrtr-font-size-md);
    font-weight: 500;
    color: var(--strgrtr-color-text);
}

/* Button Actions in Card Header */
.strgrtr-header-actions {
    display: flex;
    align-items: center;
    font-size: var(--strgrtr-font-size-sm);
    margin-right: 30px; /* Offset toggle arrow */
}

.strgrtr-action-link {
    background: none !important;
    border: none !important;
    color: var(--strgrtr-color-primary) !important;
    cursor: pointer;
    padding: 0 !important;
    font-weight: 500 !important;
    font-size: var(--strgrtr-font-size-sm) !important;
    box-shadow: none !important;
    text-decoration: none !important;
    transition: color var(--strgrtr-transition-fast);
}

.strgrtr-action-link:hover {
    color: var(--strgrtr-color-primary-2) !important;
    text-decoration: underline !important;
}

.strgrtr-separator {
    color: var(--strgrtr-color-border);
    margin: 0 6px;
}

/* Thumbnail Sizes Grid synced with RVS Database Doctor */
#strgrtr-sizes-list {
    margin-top: 10px;
}

.strgrtr-sizes-fieldset {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 10px !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.strgrtr-size-label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 12px !important;
    background: var(--strgrtr-color-bg-alt) !important;
    border: 1px solid var(--strgrtr-color-border) !important;
    border-radius: var(--strgrtr-radius-md) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.strgrtr-size-label:hover {
    background: var(--strgrtr-color-bg-panel) !important;
    border-color: var(--strgrtr-color-border-strong) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.strgrtr-size-label:has(input[type="checkbox"]:checked) {
    background: var(--strgrtr-color-primary-soft) !important;
    border-color: var(--strgrtr-color-primary-border) !important;
    box-shadow: inset 3px 0 0 var(--strgrtr-color-primary) !important;
}

.strgrtr-size-label input[type="checkbox"] {
    border: 1.5px solid var(--strgrtr-color-border-strong) !important;
    border-radius: 4px !important;
    width: 16px !important;
    height: 16px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.strgrtr-size-label input[type="checkbox"]:checked {
    background-color: var(--strgrtr-color-primary) !important;
    border-color: var(--strgrtr-color-primary) !important;
}

.strgrtr-size-label strong {
    font-size: var(--strgrtr-font-size-sm);
    font-weight: 500;
    color: var(--strgrtr-color-text);
}

.strgrtr-size-dims {
    color: var(--strgrtr-color-text-muted);
    font-size: 10px;
}

/* Scan / Info Panels synced with RVS Database Doctor */
.strgrtr-count-panel {
    display: flex;
    align-items: center;
    background: var(--strgrtr-color-bg);
    border-left: 4px solid var(--strgrtr-color-primary);
    padding: 12px 16px;
    box-shadow: var(--strgrtr-shadow-card);
    margin-bottom: 15px;
    border-radius: 0 var(--strgrtr-radius-md) var(--strgrtr-radius-md) 0;
}

.strgrtr-count-panel.error {
    border-left-color: var(--strgrtr-color-danger);
    background: var(--strgrtr-color-danger-soft);
}

.strgrtr-count-icon-indicator {
    font-size: 15px;
    margin-right: 10px;
}

.strgrtr-count-message {
    margin: 0;
    font-weight: 400;
    font-size: var(--strgrtr-font-size-md);
}

/* Modern Button Controls synced with RVS Database Doctor */
.strgrtr-submit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.strgrtr-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 38px !important;
    padding: 0 16px !important;
    border-radius: var(--strgrtr-radius-md) !important;
    font-family: 'Inter', sans-serif !important;
    font-size: var(--strgrtr-font-size-md) !important;
    font-weight: 600 !important;
    border: 1px solid var(--strgrtr-color-border) !important;
    cursor: pointer !important;
    box-sizing: border-box;
    white-space: nowrap;
    transition: all 0.2s ease !important;
    box-shadow: var(--strgrtr-shadow-card) !important;
    text-decoration: none !important;
}

.strgrtr-btn:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

.strgrtr-btn:active:not(:disabled) {
    transform: scale(0.97) !important;
}

.strgrtr-btn-primary {
    background: var(--strgrtr-color-primary) !important;
    border-color: var(--strgrtr-color-primary) !important;
    color: #ffffff !important;
}

.strgrtr-btn-primary:hover:not(:disabled) {
    background: var(--strgrtr-color-primary-2) !important;
    border-color: var(--strgrtr-color-primary-2) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25) !important;
}

.strgrtr-btn-secondary {
    background: var(--strgrtr-color-bg) !important;
    border-color: var(--strgrtr-color-primary) !important;
    color: var(--strgrtr-color-primary) !important;
}

.strgrtr-btn-secondary:hover:not(:disabled) {
    background: var(--strgrtr-color-bg-alt) !important;
    border-color: var(--strgrtr-color-primary-2) !important;
    color: var(--strgrtr-color-primary-2) !important;
    transform: translateY(-1px);
}

.strgrtr-btn-danger {
    background: var(--strgrtr-color-danger) !important;
    border-color: var(--strgrtr-color-danger) !important;
    color: #ffffff !important;
}

.strgrtr-btn-danger:hover:not(:disabled) {
    background: var(--strgrtr-color-danger-hover) !important;
    border-color: var(--strgrtr-color-danger-hover) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.25) !important;
}

/* Progress Sections synced with RVS Database Doctor */
.strgrtr-progress-section {
    background: var(--strgrtr-color-bg-alt);
    border: 1px solid var(--strgrtr-color-border);
    border-radius: var(--strgrtr-radius-md);
    padding: var(--strgrtr-space-md);
    margin-bottom: 20px;
}

.strgrtr-progress-meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: var(--strgrtr-font-size-sm);
    margin-bottom: 8px;
}

.strgrtr-progress-count {
    font-weight: 500;
    color: var(--strgrtr-color-primary);
}

.strgrtr-current-image {
    font-weight: 400;
    color: var(--strgrtr-color-text-muted);
}

.strgrtr-progress-bar-wrapper {
    height: 10px;
    background: var(--strgrtr-color-border-strong);
    border-radius: 5px;
    overflow: hidden;
}

#strgrtr-progress-bar {
    border: none;
    background: transparent;
    height: 100%;
}

#strgrtr-progress-bar .ui-progressbar-value {
    background: linear-gradient(90deg, var(--strgrtr-color-primary), var(--strgrtr-color-info));
    border: none;
    height: 100%;
    transition: width 0.15s ease-in-out;
}

/* Activity Console Terminal - Dark theme synced with RVS Database Doctor */
.strgrtr-terminal-wrapper {
    border-radius: var(--strgrtr-radius-md);
    overflow: hidden;
    border: 1px solid #1e293b;
    box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.3), 0 4px 6px -4px rgba(15, 23, 42, 0.3);
}

.strgrtr-terminal-header {
    background: #1e293b;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #334155;
}

.strgrtr-terminal-dots {
    display: flex;
    gap: 4px;
    margin-right: 12px;
}

.dot-red { background-color: #ff5f57 !important; }
.dot-yellow { background-color: #febc2e !important; }
.dot-green { background-color: #28c840 !important; }

.strgrtr-terminal-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    background-color: #c3c4c7;
}

.strgrtr-terminal-title {
    font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
    font-size: var(--strgrtr-font-size-xs);
    color: #94a3b8;
    flex-grow: 1;
    text-align: left;
    margin-right: 0;
    font-weight: 600;
}

.strgrtr-terminal-body {
    background: var(--strgrtr-color-bg-code) !important;
    color: #e2e8f0 !important;
    padding: 16px !important;
    height: 220px;
    overflow-y: auto;
    font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace !important;
    font-size: var(--strgrtr-font-size-sm) !important;
    line-height: 1.6 !important;
    white-space: pre-wrap;
    word-break: break-word;
}

.strgrtr-terminal-body::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.strgrtr-terminal-body::-webkit-scrollbar-track {
    background: var(--strgrtr-color-bg-code);
}

.strgrtr-terminal-body::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 10px;
}

.strgrtr-terminal-body::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

.strgrtr-notice {
    margin: 0 0 4px 0;
    display: flex;
    align-items: flex-start;
}

.strgrtr-notice.success {
    color: #4ade80;
}

.strgrtr-notice.error {
    color: #f87171;
}

.strgrtr-notice.info {
    color: #94a3b8;
}

.strgrtr-notice:last-child {
    margin-bottom: 0;
}

/* Dashboard Completion Report Metrics - Flat WP styling */
.strgrtr-metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 500px) {
    .strgrtr-metrics-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.strgrtr-metric-box {
    background: var(--strgrtr-color-bg-alt);
    border: 1px solid var(--strgrtr-color-border);
    border-radius: var(--strgrtr-radius-md);
    padding: 12px 6px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.strgrtr-metric-val {
    font-size: 20px;
    font-weight: 500;
    color: var(--strgrtr-color-text);
    margin-bottom: 2px;
    line-height: 1;
}

.strgrtr-metric-label {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--strgrtr-color-text-muted);
}

.metric-total { border-bottom: 2px solid var(--strgrtr-color-info); }
.metric-success { border-bottom: 2px solid var(--strgrtr-color-success); }
.metric-failed { border-bottom: 2px solid var(--strgrtr-color-danger); }
.metric-skipped { border-bottom: 2px solid var(--strgrtr-color-text-muted); }
.metric-time { border-bottom: 2px solid var(--strgrtr-color-primary); }

.metric-total .strgrtr-metric-val { color: var(--strgrtr-color-text); }
.metric-success .strgrtr-metric-val { color: var(--strgrtr-color-success); }
.metric-failed .strgrtr-metric-val { color: var(--strgrtr-color-danger); }
.metric-skipped .strgrtr-metric-val { color: var(--strgrtr-color-text-muted); }
.metric-time .strgrtr-metric-val { color: var(--strgrtr-color-primary); }

.hidden {
    display: none !important;
}

/* Failed Images Log styling */
.strgrtr-failures-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed var(--strgrtr-color-border);
}

.strgrtr-failures-section h3 {
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--strgrtr-color-text) !important;
    margin: 0 0 10px 0 !important;
}

.strgrtr-failures-table-wrapper {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: auto;
    border: 1px solid var(--strgrtr-color-border);
    border-radius: var(--strgrtr-radius-md);
}

.strgrtr-failures-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    text-align: left;
}

.strgrtr-failures-table th {
    background: var(--strgrtr-color-bg-alt);
    padding: 8px 10px;
    font-weight: 600;
    border-bottom: 1px solid var(--strgrtr-color-border);
    position: sticky;
    top: 0;
    z-index: 1;
    color: var(--strgrtr-color-text-soft);
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.strgrtr-failures-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--strgrtr-color-border-soft);
    vertical-align: middle;
}

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

.strgrtr-failures-table td:first-child {
    font-family: Consolas, Monaco, monospace;
    font-size: 11px;
    color: var(--strgrtr-color-text-muted);
}

.strgrtr-failures-table td:last-child {
    color: var(--strgrtr-color-danger);
    font-weight: 500;
}

/* Mini Calendar Grid styling */
.strgrtr-calendar-wrapper {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed var(--strgrtr-color-border);
}

.strgrtr-calendar-label {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    font-size: 12px;
    color: var(--strgrtr-color-text);
    margin-bottom: 8px;
}

.strgrtr-reset-history-btn {
    background: none !important;
    border: 1px solid var(--strgrtr-color-border) !important;
    color: var(--strgrtr-color-text-muted) !important;
    font-size: 10px !important;
    cursor: pointer;
    padding: 3px 8px !important;
    border-radius: var(--strgrtr-radius-sm) !important;
    box-shadow: none !important;
    transition: all var(--strgrtr-transition-fast);
}

.strgrtr-reset-history-btn:hover {
    background: var(--strgrtr-color-danger-soft) !important;
    border-color: var(--strgrtr-color-danger) !important;
    color: var(--strgrtr-color-danger) !important;
}

.strgrtr-calendar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 6px;
}

.strgrtr-cal-month {
    position: relative;
    background: var(--strgrtr-color-bg-alt);
    border: 1px solid var(--strgrtr-color-border);
    border-radius: var(--strgrtr-radius-md);
    padding: 7px 2px;
    text-align: center;
    cursor: pointer;
    user-select: none;
    transition: all var(--strgrtr-transition-fast);
}

.strgrtr-cal-month:hover {
    border-color: var(--strgrtr-color-border-strong);
    background: var(--strgrtr-color-bg-panel);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.strgrtr-cal-name {
    font-size: 11px;
    font-weight: 500;
    color: var(--strgrtr-color-text-muted);
    display: block;
}

.strgrtr-cal-check {
    position: absolute;
    top: 2px;
    right: 4px;
    font-size: 8px;
    color: var(--strgrtr-color-success);
    display: none;
    font-weight: 700;
}

/* Regenerated month state */
.strgrtr-cal-month.regenerated {
    background: var(--strgrtr-color-success-soft);
    border-color: #a7f3d0;
}

.strgrtr-cal-month.regenerated .strgrtr-cal-name {
    color: var(--strgrtr-color-success-hover);
    font-weight: 600;
}

.strgrtr-cal-month.regenerated .strgrtr-cal-check {
    display: block;
    color: var(--strgrtr-color-success);
    font-weight: 700;
}

/* Active select state (when clicked / currently selected) */
.strgrtr-cal-month.active-select {
    border-color: var(--strgrtr-color-primary);
    box-shadow: 0 0 0 2px var(--strgrtr-color-primary-soft);
    background: var(--strgrtr-color-primary-soft);
}

.strgrtr-cal-month.active-select .strgrtr-cal-name {
    color: var(--strgrtr-color-primary);
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .strgrtr-header {
        padding: 5px 0 10px 0;
    }
    .strgrtr-header h1 {
        font-size: 20px !important;
    }
    .strgrtr-subtitle {
        font-size: 12px;
    }
}