/**
 * test-run.css - Styles for the Interactive Test/Run Page
 * 
 * This stylesheet provides modern, card-based styling for the test run interface
 * following PacePublicShare design conventions. It includes:
 * - Card-based component status display
 * - Visual progress indicators
 * - Status-based color coding (red/amber/green)
 * - Responsive design patterns
 * - Accessibility-focused styling
 * 
 * @author Pace Applied Solutions
 * @version 2.0.0
 * @follows PacePublicShare Design System
 */

/* Test Run Page Layout */
.test-run-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--pace-spacing-xl, 20px);
}

.test-run-header {
    text-align: center;
    margin-bottom: var(--pace-spacing-2xl, 40px);
    background: linear-gradient(135deg, var(--pace-primary-color, #007bff) 0%, var(--pace-secondary-color, #6c757d) 100%);
    color: white;
    padding: var(--pace-spacing-xl, 30px);
    border-radius: var(--pace-border-radius-lg, 12px);
    box-shadow: 0 8px 32px rgba(0, 123, 255, 0.2);
}

.test-run-header h1 {
    color: white;
    margin-bottom: var(--pace-spacing-md, 15px);
    font-family: var(--pace-font-family-heading, 'Segoe UI', sans-serif);
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.test-run-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--pace-font-size-lg, 18px);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    gap: var(--pace-spacing-sm, 5px);
    margin-bottom: var(--pace-spacing-xl, 20px);
    border-bottom: 2px solid var(--pace-border-color, #e9ecef);
}

.tab-button {
    padding: var(--pace-spacing-md, 12px) var(--pace-spacing-lg, 24px);
    background: none;
    border: none;
    cursor: pointer;
    font-size: var(--pace-font-size-base, 16px);
    font-weight: 500;
    color: var(--pace-text-light, #6c757d);
    border-bottom: 2px solid transparent;
    transition: all var(--pace-transition, 0.3s ease);
    font-family: var(--pace-font-family, 'Segoe UI', sans-serif);
}

.tab-button.active {
    color: var(--pace-primary-color, #007bff);
    border-bottom-color: var(--pace-primary-color, #007bff);
}

.tab-button:hover {
    color: var(--pace-primary-color, #007bff);
}

.tab-button:disabled {
    color: var(--pace-text-light, #adb5bd);
    cursor: not-allowed;
    opacity: 0.6;
}

.tab-content {
    display: none;
}

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

/* ================================================
   Card-Based Run Status Interface
   ================================================ */

.run-status-container {
    margin-top: var(--pace-spacing-2xl, 2rem);
    padding: var(--pace-spacing-xl, 1.5rem);
    background: var(--pace-card-background, #ffffff);
    border: 1px solid var(--pace-border-color, #e5e5e5);
    border-radius: var(--pace-border-radius-lg, 8px);
    box-shadow: 0 2px 4px var(--pace-shadow-color, rgba(0,0,0,0.08));
}

.run-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--pace-spacing-xl, 1.5rem);
    padding-bottom: var(--pace-spacing-md, 1rem);
    border-bottom: 1px solid var(--pace-border-color, #e5e5e5);
}

.run-title {
    display: flex;
    align-items: center;
    gap: var(--pace-spacing-sm, 0.5rem);
    margin: 0;
    font-family: var(--pace-font-family-heading, 'Segoe UI', sans-serif);
    font-size: var(--pace-font-size-xl, 1.25rem);
    color: var(--pace-text-color, #333);
}

.run-title i {
    color: var(--pace-primary-color, #EB9110);
}

.run-actions {
    display: flex;
    gap: var(--pace-spacing-sm, 0.5rem);
}

.run-summary {
    margin-bottom: var(--pace-spacing-xl, 1.5rem);
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--pace-spacing-md, 1rem);
    margin-bottom: var(--pace-spacing-md, 1rem);
}

.stat-item {
    text-align: center;
    padding: var(--pace-spacing-md, 1rem);
    background: var(--pace-background-color, #f9f9f9);
    border-radius: var(--pace-border-radius, 6px);
    border: 1px solid var(--pace-border-color, #e5e5e5);
}

.stat-label {
    display: block;
    font-size: var(--pace-font-size-sm, 0.875rem);
    color: var(--pace-text-light, #666);
    margin-bottom: var(--pace-spacing-xs, 0.25rem);
}

.stat-value {
    display: block;
    font-size: var(--pace-font-size-2xl, 1.5rem);
    font-weight: 600;
    color: var(--pace-text-color, #333);
}

.progress-bar {
    height: 8px;
    background: var(--pace-border-color, #e5e5e5);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--pace-primary-color, #EB9110) 0%, var(--pace-accent-color, #0078d4) 100%);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

/* ================================================
   Component Cards Container
   ================================================ */

.component-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--pace-spacing-md, 1rem);
    margin-top: var(--pace-spacing-xl, 1.5rem);
}

/* ================================================
   Individual Component Cards
   ================================================ */

.component-card {
    background: var(--pace-card-background, #ffffff);
    border: 1px solid var(--pace-border-color, #e5e5e5);
    border-radius: var(--pace-border-radius-lg, 8px);
    padding: var(--pace-spacing-lg, 1.5rem);
    box-shadow: 0 2px 4px var(--pace-shadow-color, rgba(0,0,0,0.08));
    transition: all var(--pace-transition, 0.2s ease);
    position: relative;
    overflow: hidden;
}

.component-card:hover {
    box-shadow: 0 4px 8px var(--pace-shadow-color, rgba(0,0,0,0.12));
    transform: translateY(-2px);
}

.component-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--pace-spacing-md, 1rem);
}

.component-title {
    font-size: var(--pace-font-size-lg, 1.125rem);
    font-weight: 600;
    color: var(--pace-text-color, #333);
    margin: 0;
    line-height: 1.2;
    font-family: var(--pace-font-family, 'Segoe UI', sans-serif);
}

.component-status-indicator {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--pace-font-size-sm, 0.875rem);
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Status-based colors */
.component-status-indicator.status-pending {
    background: var(--pace-secondary-color, #6c757d);
}

.component-status-indicator.status-running {
    background: var(--pace-accent-color, #0078d4);
    animation: pulse 2s infinite;
}

.component-status-indicator.status-success {
    background: #28a745;
}

.component-status-indicator.status-warning {
    background: #ffc107;
    color: #212529;
}

.component-status-indicator.status-error {
    background: #dc3545;
}

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

.component-current-step {
    font-size: var(--pace-font-size-sm, 0.875rem);
    color: var(--pace-text-light, #666);
    margin-bottom: var(--pace-spacing-md, 1rem);
    font-style: italic;
}

.component-progress {
    margin-bottom: var(--pace-spacing-md, 1rem);
}

.component-progress-bar {
    height: 4px;
    background: var(--pace-border-color, #e5e5e5);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: var(--pace-spacing-xs, 0.25rem);
}

.component-progress-fill {
    height: 100%;
    background: var(--pace-primary-color, #EB9110);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 2px;
}

.component-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--pace-spacing-md, 1rem);
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.step-indicator:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 12px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: var(--pace-border-color, #e5e5e5);
    z-index: 1;
}

.step-indicator.completed::after {
    background: var(--pace-primary-color, #EB9110);
}

.step-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--pace-font-size-xs, 0.75rem);
    margin-bottom: var(--pace-spacing-xs, 0.25rem);
    position: relative;
    z-index: 2;
    border: 2px solid var(--pace-border-color, #e5e5e5);
    background: var(--pace-card-background, #ffffff);
    color: var(--pace-text-light, #666);
}

.step-indicator.completed .step-circle {
    background: var(--pace-primary-color, #EB9110);
    border-color: var(--pace-primary-color, #EB9110);
    color: white;
}

.step-indicator.active .step-circle {
    background: var(--pace-accent-color, #0078d4);
    border-color: var(--pace-accent-color, #0078d4);
    color: white;
    animation: pulse 2s infinite;
}

.step-label {
    font-size: var(--pace-font-size-xs, 0.75rem);
    color: var(--pace-text-light, #666);
    text-align: center;
    line-height: 1.2;
    max-width: 60px;
}

.step-indicator.completed .step-label {
    color: var(--pace-primary-color, #EB9110);
    font-weight: 500;
}

.step-indicator.active .step-label {
    color: var(--pace-accent-color, #0078d4);
    font-weight: 500;
}

.component-duration {
    font-size: var(--pace-font-size-xs, 0.75rem);
    color: var(--pace-text-light, #666);
    text-align: right;
    margin-top: var(--pace-spacing-sm, 0.5rem);
}

/* ================================================
   Responsive Design for Cards
   ================================================ */

@media (max-width: 768px) {
    .component-cards-container {
        grid-template-columns: 1fr;
    }
    
    .summary-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .run-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--pace-spacing-md, 1rem);
    }
    
    .run-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .component-steps {
        flex-wrap: wrap;
        gap: var(--pace-spacing-sm, 0.5rem);
    }
    
    .step-indicator {
        flex: none;
        width: calc(20% - var(--pace-spacing-sm, 0.5rem));
    }
    
    .step-indicator:not(:last-child)::after {
        display: none;
    }
}

/* ================================================
   Legacy Results Interface (Hidden by Default)
   ================================================ */

.results-section {
    margin-top: var(--pace-spacing-xl, 1.5rem);
    padding: var(--pace-spacing-lg, 1rem);
    background: var(--pace-background-color, #f9f9f9);
    border: 1px solid var(--pace-border-color, #e5e5e5);
    border-radius: var(--pace-border-radius, 6px);
}

.json-display {
    background: var(--pace-card-background, #ffffff);
    border: 1px solid var(--pace-border-color, #e5e5e5);
    border-radius: var(--pace-border-radius-sm, 4px);
    padding: var(--pace-spacing-md, 1rem);
    font-family: 'Courier New', monospace;
    font-size: var(--pace-font-size-sm, 0.875rem);
    line-height: 1.4;
    color: var(--pace-text-color, #333);
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.result-summary {
    display: flex;
    align-items: center;
    gap: var(--pace-spacing-sm, 0.5rem);
    padding: var(--pace-spacing-md, 1rem);
    border-radius: var(--pace-border-radius, 6px);
    margin-bottom: var(--pace-spacing-lg, 1rem);
    font-weight: 500;
}

.result-summary.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.result-summary.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.result-details {
    margin-bottom: var(--pace-spacing-lg, 1rem);
}

.result-details h5 {
    margin-bottom: var(--pace-spacing-md, 1rem);
    color: var(--pace-text-color, #333);
    font-size: var(--pace-font-size-lg, 1.125rem);
}

.result-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.result-details li {
    padding: var(--pace-spacing-xs, 0.25rem) 0;
    color: var(--pace-text-color, #333);
}

.result-raw {
    margin-top: var(--pace-spacing-lg, 1rem);
    padding-top: var(--pace-spacing-lg, 1rem);
    border-top: 1px solid var(--pace-border-color, #e5e5e5);
}

.result-raw h5 {
    margin-bottom: var(--pace-spacing-md, 1rem);
    color: var(--pace-text-color, #333);
    font-size: var(--pace-font-size-lg, 1.125rem);
}

/* ================================================
   Button Styles Following PacePublicShare
   ================================================ */

.btn-primary {
    background: var(--pace-primary-color, #EB9110);
    color: white;
    border: none;
    padding: var(--pace-spacing-sm, 0.5rem) var(--pace-spacing-lg, 1rem);
    border-radius: var(--pace-border-radius, 6px);
    font-size: var(--pace-font-size-sm, 0.875rem);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--pace-transition, 0.2s ease);
    display: inline-flex;
    align-items: center;
    gap: var(--pace-spacing-sm, 0.5rem);
    text-decoration: none;
    font-family: var(--pace-font-family, 'Segoe UI', sans-serif);
}

.btn-primary:hover:not(:disabled) {
    background: var(--pace-primary-dark, #d48209);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px var(--pace-shadow-color, rgba(0,0,0,0.1));
}

.btn-primary:disabled {
    background: var(--pace-secondary-color, #6c757d);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: var(--pace-secondary-color, #6c757d);
    color: white;
    border: none;
    padding: var(--pace-spacing-sm, 0.5rem) var(--pace-spacing-lg, 1rem);
    border-radius: var(--pace-border-radius, 6px);
    font-size: var(--pace-font-size-sm, 0.875rem);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--pace-transition, 0.2s ease);
    display: inline-flex;
    align-items: center;
    gap: var(--pace-spacing-sm, 0.5rem);
    text-decoration: none;
    font-family: var(--pace-font-family, 'Segoe UI', sans-serif);
}

.btn-secondary:hover:not(:disabled) {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px var(--pace-shadow-color, rgba(0,0,0,0.1));
}

.btn-outline {
    background: transparent;
    color: var(--pace-primary-color, #EB9110);
    border: 2px solid var(--pace-primary-color, #EB9110);
    padding: var(--pace-spacing-sm, 0.5rem) var(--pace-spacing-lg, 1rem);
    border-radius: var(--pace-border-radius, 6px);
    font-size: var(--pace-font-size-sm, 0.875rem);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--pace-transition, 0.2s ease);
    display: inline-flex;
    align-items: center;
    gap: var(--pace-spacing-sm, 0.5rem);
    text-decoration: none;
    font-family: var(--pace-font-family, 'Segoe UI', sans-serif);
}

.btn-outline:hover:not(:disabled) {
    background: var(--pace-primary-color, #EB9110);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px var(--pace-shadow-color, rgba(0,0,0,0.1));
}

/* ================================================
   Form Styles
   ================================================ */

.form-group {
    margin-bottom: var(--pace-spacing-lg, 1rem);
}

.verbose-logging {
    display: flex;
    align-items: center;
    gap: var(--pace-spacing-sm, 0.5rem);
    padding: var(--pace-spacing-md, 1rem);
    background: var(--pace-background-color, #f9f9f9);
    border: 1px solid var(--pace-border-color, #e5e5e5);
    border-radius: var(--pace-border-radius, 6px);
}

.checkbox-label {
    font-size: var(--pace-font-size-sm, 0.875rem);
    color: var(--pace-text-color, #333);
    cursor: pointer;
    user-select: none;
    font-family: var(--pace-font-family, 'Segoe UI', sans-serif);
}

input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* ================================================
   Loading and Error States
   ================================================ */

.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--pace-spacing-sm, 0.5rem);
    padding: var(--pace-spacing-xl, 1.5rem);
    color: var(--pace-text-light, #666);
    font-size: var(--pace-font-size-sm, 0.875rem);
}

.loading-indicator i {
    animation: spin 1s linear infinite;
}

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

.error-alert {
    display: flex;
    align-items: flex-start;
    gap: var(--pace-spacing-sm, 0.5rem);
    padding: var(--pace-spacing-md, 1rem);
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: var(--pace-border-radius, 6px);
    margin-bottom: var(--pace-spacing-lg, 1rem);
}

.error-alert i {
    color: #721c24;
    font-size: var(--pace-font-size-lg, 1.125rem);
    margin-top: 0.125rem;
}

.error-alert h4 {
    margin: 0 0 var(--pace-spacing-xs, 0.25rem) 0;
    font-size: var(--pace-font-size-base, 1rem);
}

.error-alert p {
    margin: 0;
    font-size: var(--pace-font-size-sm, 0.875rem);
}

/* ================================================
   Dark Theme Support
   ================================================ */

[data-theme="dark"] .run-status-container {
    background: var(--pace-card-background, #1F2937);
    border-color: var(--pace-border-color, #374151);
}

[data-theme="dark"] .component-card {
    background: var(--pace-card-background, #1F2937);
    border-color: var(--pace-border-color, #374151);
}

[data-theme="dark"] .stat-item {
    background: var(--pace-background-color, #111827);
    border-color: var(--pace-border-color, #374151);
}

[data-theme="dark"] .json-display {
    background: var(--pace-card-background, #1F2937);
    border-color: var(--pace-border-color, #374151);
    color: var(--pace-text-color, #F9FAFB);
}

[data-theme="dark"] .verbose-logging {
    background: var(--pace-background-color, #111827);
    border-color: var(--pace-border-color, #374151);
}

[data-theme="dark"] .results-section {
    background: var(--pace-background-color, #111827);
    border-color: var(--pace-border-color, #374151);
}

/* ================================================
   Accessibility Improvements
   ================================================ */

.component-card:focus-within {
    outline: 2px solid var(--pace-primary-color, #EB9110);
    outline-offset: 2px;
}

.btn-primary:focus,
.btn-secondary:focus,
.btn-outline:focus {
    outline: 2px solid var(--pace-primary-color, #EB9110);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .component-card {
        border-width: 2px;
    }
    
    .component-status-indicator {
        border: 2px solid currentColor;
    }
    
    .step-circle {
        border-width: 3px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .component-card {
        transition: none;
    }
    
    .component-card:hover {
        transform: none;
    }
    
    .btn-primary:hover,
    .btn-secondary:hover,
    .btn-outline:hover {
        transform: none;
    }
    
    .pulse,
    .component-status-indicator.status-running,
    .step-indicator.active .step-circle {
        animation: none;
    }
    
    .component-progress-fill {
        transition: none;
    }
}

/* Collapsible Workload Sections */
.workload-section {
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.workload-header {
    background: #f8f9fa;
    padding: 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.workload-header:hover {
    background: #e9ecef;
}

.workload-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.workload-header h4 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #495057;
}

.collapse-icon {
    font-size: 12px;
    transition: transform 0.2s ease;
}



.workload-controls {
    display: flex;
    gap: 10px;
}

.workload-controls button {
    padding: 4px 8px;
    font-size: 12px;
}

/* Components Grid */
.components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.component-item {
    background: #f8f9fa;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.component-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin: 0;
    font-size: 13px;
}

.component-checkbox {
    margin: 0;
}

.component-name {
    font-family: 'Courier New', monospace;
    color: #495057;
}

/* Future Features Content */
.schedule-interface,
.watch-interface {
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.schedule-interface h2,
.watch-interface h2 {
    color: #495057;
    margin-bottom: 10px;
}

.schedule-interface p,
.watch-interface p {
    color: #6c757d;
    margin-bottom: 30px;
}

.schedule-form,
.watch-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.schedule-form .form-group,
.watch-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.schedule-form label,
.watch-form label {
    font-weight: 500;
    color: #495057;
}

.schedule-form select,
.schedule-form input,
.watch-form select,
.watch-form input {
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.schedule-selection,
.watch-selection {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

/* Selection Controls */
.selection-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.selection-controls .btn-secondary {
    padding: 6px 12px;
    font-size: 14px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.selection-controls .btn-secondary:hover {
    background: #5a6268;
}

.selection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.selection-header h3 {
    margin: 0;
    color: #495057;
}

/* Responsive Design */
@media (max-width: 768px) {
    .workload-header-content {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .components-grid {
        grid-template-columns: 1fr;
    }
    
    .selection-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .selection-controls .btn-secondary {
        text-align: center;
    }
    
    .tab-navigation {
        flex-direction: column;
    }
    
    .tab-button {
        text-align: center;
        border-bottom: 1px solid #e9ecef;
    }
    
    .tab-button.active {
        border-bottom-color: #007bff;
    }
}

/* Loading and Error States */
.loading-indicator, .error-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
}

.loading-indicator {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #6c757d;
}

.error-alert {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.error-alert i {
    font-size: 20px;
    color: #dc3545;
}

/* ================================================
   Enhanced Selection Interface
   ================================================ */

.selection-section {
    margin: 40px 0;
    padding: 30px;
    background: var(--pace-card-background, #ffffff);
    border-radius: var(--pace-border-radius-lg, 12px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border: 1px solid rgba(235, 145, 16, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.selection-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--pace-primary-color, #EB9110), var(--pace-accent-color, #0078d4));
}

.selection-section:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

.selection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(235, 145, 16, 0.1);
}

.selection-header h3 {
    color: var(--pace-text-color, #2c3e50);
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.selection-header h3::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--pace-primary-color, #EB9110);
    border-radius: 2px;
}

.selection-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-secondary {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--pace-secondary-color, #6c757d), #5a6268);
    color: white;
    border: none;
    border-radius: var(--pace-border-radius-md, 8px);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.2);
    position: relative;
    overflow: hidden;
}

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

.btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268, #495057);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(108, 117, 125, 0.3);
}

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

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

.btn-primary {
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--pace-primary-color, #EB9110), #d4820f);
    color: white;
    border: none;
    border-radius: var(--pace-border-radius-md, 8px);
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(235, 145, 16, 0.3);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.btn-primary:hover {
    background: linear-gradient(135deg, #d4820f, #c2770e);
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(235, 145, 16, 0.4);
}

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

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-primary:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-primary:disabled::before {
    display: none;
}

/* ================================================
   Enhanced Workload & Component Grid
   ================================================ */

.components-grid, .workloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.workloads-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.workload-card {
    background: var(--pace-card-background, #ffffff);
    border: 2px solid rgba(235, 145, 16, 0.1);
    border-radius: var(--pace-border-radius-lg, 12px);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.workload-card:hover {
    border-color: var(--pace-primary-color, #EB9110);
    box-shadow: 0 8px 32px rgba(235, 145, 16, 0.15);
    transform: translateY(-4px);
}

.workload-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--pace-primary-color, #EB9110), var(--pace-accent-color, #0078d4));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.workload-card:hover::before {
    transform: scaleX(1);
}

.workload-label {
    display: block;
    padding: 24px;
    cursor: pointer;
    position: relative;
}

.workload-label input[type="checkbox"] {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    opacity: 0;
}

.workload-label input[type="checkbox"] + .workload-info::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 24px;
    height: 24px;
    border: 2px solid var(--pace-border-color, #e5e5e5);
    border-radius: 4px;
    background: white;
    transition: all 0.3s ease;
}

.workload-label input[type="checkbox"]:checked + .workload-info::before {
    background: var(--pace-primary-color, #EB9110);
    border-color: var(--pace-primary-color, #EB9110);
}

.workload-label input[type="checkbox"]:checked + .workload-info::after {
    content: '✓';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    color: white;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.workload-info {
    position: relative;
    padding-right: 40px;
}

.workload-info h4 {
    margin: 0 0 8px 0;
    color: var(--pace-text-color, #2c3e50);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.2;
}

.workload-info p {
    margin: 0;
    color: var(--pace-text-light, #666);
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Components by Workload */
.components-by-workload {
    margin-top: 25px;
}

.workload-section {
    margin-bottom: 32px;
    border: 2px solid rgba(235, 145, 16, 0.1);
    border-radius: var(--pace-border-radius-lg, 12px);
    overflow: hidden;
    background: var(--pace-card-background, #ffffff);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.workload-section:hover {
    border-color: rgba(235, 145, 16, 0.2);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.workload-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 1px solid rgba(235, 145, 16, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.workload-header:hover {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
}

.workload-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.workload-header h4 {
    margin: 0;
    color: var(--pace-text-color, #2c3e50);
    font-size: 1.1rem;
    font-weight: 600;
}

.collapse-icon {
    transition: transform 0.3s ease;
    color: var(--pace-primary-color, #EB9110);
}

.workload-header.collapsed .collapse-icon {
    transform: rotate(-90deg);
}

.workload-content {
    display: none;
    padding: 24px;
    background: var(--pace-card-background, #ffffff);
    transition: all 0.3s ease;
}

.workload-content.expanded {
    display: block;
}

.components-grid .component-item {
    background: var(--pace-card-background, #ffffff);
    border: 1px solid rgba(235, 145, 16, 0.1);
    border-radius: var(--pace-border-radius-md, 8px);
    padding: 16px;
    transition: all 0.3s ease;
    position: relative;
}

.components-grid .component-item:hover {
    border-color: var(--pace-primary-color, #EB9110);
    box-shadow: 0 4px 16px rgba(235, 145, 16, 0.1);
    transform: translateY(-2px);
}

.component-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--pace-text-color, #2c3e50);
    font-weight: 500;
}

.component-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--pace-primary-color, #EB9110);
    cursor: pointer;
}

.component-name {
    line-height: 1.3;
}
}

.workload-controls {
    display: flex;
    gap: 8px;
}

.btn-small {
    padding: 6px 12px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s;
}

.btn-small:hover {
    background-color: #5a6268;
}

.components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1px;
    background: #e9ecef;
    margin: 0;
}

.component-item {
    background: #ffffff;
    transition: background-color 0.3s;
}

.component-item:hover {
    background-color: #f8f9fa;
}

.component-label {
    display: block;
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.3s;
    border: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.component-name {
    font-size: 14px;
    color: #495057;
    font-family: 'Courier New', monospace;
}

.component-checkbox {
    margin: 0;
    transform: scale(1.1);
}

.component-card, .workload-card {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #ffffff;
}

.component-card:hover, .workload-card:hover {
    border-color: #007bff;
    box-shadow: 0 4px 8px rgba(0,123,255,0.2);
}

.workload-label {
    display: block;
    padding: 15px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.workload-label:hover {
    background-color: #f8f9fa;
}

.workload-checkbox {
    margin-right: 10px;
    transform: scale(1.2);
}

.component-info h4, .workload-info h4 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 16px;
}

.component-info p, .workload-info p {
    margin: 0 0 8px 0;
    color: #6c757d;
    font-size: 14px;
    line-height: 1.4;
}

.workload-components {
    margin-top: 10px;
}

.workload-components small {
    color: #007bff;
    font-weight: 500;
}

/* ================================================
   Enhanced Test Run Form
   ================================================ */

.test-run-form {
    background: var(--pace-card-background, #ffffff);
    padding: 40px;
    border-radius: var(--pace-border-radius-lg, 12px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    margin: 40px 0;
    border: 2px solid rgba(235, 145, 16, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.test-run-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--pace-primary-color, #EB9110), var(--pace-accent-color, #0078d4));
}

.test-run-form:hover {
    box-shadow: 0 12px 48px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

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

.form-group label {
    display: block;
    margin-bottom: 12px;
    color: var(--pace-text-color, #2c3e50);
    font-weight: 600;
    font-size: 1.1rem;
}

.verbose-logging {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(235, 145, 16, 0.05);
    border-radius: var(--pace-border-radius-md, 8px);
    border: 1px solid rgba(235, 145, 16, 0.1);
    transition: all 0.3s ease;
}

.verbose-logging:hover {
    background: rgba(235, 145, 16, 0.08);
    border-color: rgba(235, 145, 16, 0.2);
}

.verbose-logging input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--pace-primary-color, #EB9110);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.verbose-logging input[type="checkbox"]:hover {
    transform: scale(1.1);
}

/* ================================================
   Selection Counters and Visual Feedback
   ================================================ */

.selection-counter {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--pace-text-light, #666);
    margin-left: 8px;
    transition: color 0.3s ease;
}

.workload-counter {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--pace-text-light, #666);
    margin-left: 8px;
    transition: color 0.3s ease;
}

.component-count {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--pace-text-light, #666);
    margin-left: 8px;
}

.btn-primary.ready-to-run {
    background: linear-gradient(135deg, #28a745, #20c997);
    animation: pulse-ready 2s infinite;
}

.btn-primary.ready-to-run:hover {
    background: linear-gradient(135deg, #218838, #1ea888);
}

@keyframes pulse-ready {
    0% { box-shadow: 0 4px 16px rgba(40, 167, 69, 0.3); }
    50% { box-shadow: 0 6px 24px rgba(40, 167, 69, 0.5); }
    100% { box-shadow: 0 4px 16px rgba(40, 167, 69, 0.3); }
}

.component-item, .workload-card {
    transition: all 0.3s ease;
}

.component-item:hover, .workload-card:hover {
    transform: translateY(-2px);
}

/* Enhanced icons in headers */
.selection-header h3 i,
.workload-header h4 i,
.workload-info h4 i {
    margin-right: 8px;
    color: var(--pace-primary-color, #EB9110);
}

/* Button icons */
.btn-secondary i,
.btn-primary i {
    margin-right: 6px;
}

.btn-small i {
    margin-right: 4px;
    font-size: 0.8rem;
}

.btn-primary {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover:not(:disabled) {
    background-color: #0056b3;
}

.btn-primary:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

/* Progress Indicator */
.progress-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    color: #155724;
    margin: 20px 0;
}

/* Results Display */
.results-section {
    margin: 30px 0;
}

.result-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.result-summary.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.result-summary.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.result-summary i {
    font-size: 20px;
}

.result-details {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.result-details h5 {
    margin: 0 0 15px 0;
    color: #2c3e50;
}

.result-details ul {
    margin: 0;
    padding-left: 20px;
}

.result-details li {
    margin-bottom: 8px;
    color: #495057;
}

/* Details Grid */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.detail-item {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.detail-item.success {
    border-left: 4px solid #28a745;
}

.detail-item.warning {
    border-left: 4px solid #ffc107;
}

.detail-item.error {
    border-left: 4px solid #dc3545;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.detail-type {
    font-size: 12px;
    text-transform: uppercase;
    color: #6c757d;
    font-weight: 600;
}

.detail-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
}

.detail-status.success { color: #28a745; }
.detail-status.warning { color: #ffc107; }
.detail-status.error { color: #dc3545; }

.detail-content {
    padding: 15px;
}

.detail-content h6 {
    margin: 0 0 8px 0;
    color: #2c3e50;
}

.detail-content p {
    margin: 0 0 8px 0;
    color: #6c757d;
    font-size: 14px;
}

.detail-content small {
    color: #6c757d;
    font-size: 12px;
}

/* Verbose Log */
.verbose-log {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 15px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.4;
}

.log-entry {
    padding: 2px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.log-entry:last-child {
    border-bottom: none;
}

/* JSON Display */
.json-display {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.4;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Responsive Design */
@media (max-width: 768px) {
    .test-run-page {
        padding: 15px;
    }
    
    .selection-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .selection-controls {
        justify-content: center;
    }
    
    .workload-header {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .workload-controls {
        justify-content: center;
    }
    
    .components-grid {
        grid-template-columns: 1fr;
    }
    
    .workloads-grid {
        grid-template-columns: 1fr;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-header {
        flex-direction: column;
        gap: 5px;
        align-items: stretch;
    }
    
    .component-name {
        font-size: 13px;
    }
}

/* Animation for spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spin {
    animation: spin 1s linear infinite;
}

/* Schedule Tab Styles */
.schedule-config-section {
    margin: 30px 0;
    padding: 25px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.schedule-config-section h3 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.days-selector {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.days-selector label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #495057;
}

.days-selector input[type="checkbox"] {
    transform: scale(1.1);
}

.frequency-input {
    display: flex;
    gap: 10px;
    align-items: center;
}

.frequency-input input {
    flex: 1;
    max-width: 100px;
}

.frequency-input select {
    flex: 1;
    max-width: 150px;
}

.schedule-options,
.watch-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.schedule-options label,
.watch-options label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #495057;
}

.schedule-options input[type="checkbox"],
.watch-options input[type="checkbox"] {
    transform: scale(1.1);
}

.schedule-preview,
.watch-preview {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.schedule-preview h4,
.watch-preview h4 {
    margin-top: 0;
    color: #2c3e50;
}

.preview-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.preview-item {
    padding: 10px;
    background: #ffffff;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.preview-item strong {
    color: #2c3e50;
}

/* Watch Tab Styles */
.watch-config-section {
    margin: 30px 0;
    padding: 25px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.watch-config-section h3 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.change-detection-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.change-detection-options label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #495057;
}

.change-detection-options input[type="checkbox"] {
    transform: scale(1.1);
}

.active-watches-section {
    margin: 30px 0;
    padding: 25px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.active-watches-section h3 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.active-watch-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-bottom: 15px;
}

.watch-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.watch-header h5 {
    margin: 0;
    color: #2c3e50;
}

.watch-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #495057;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #28a745;
}

.status-indicator.active {
    background-color: #28a745;
}

.status-indicator.paused {
    background-color: #ffc107;
}

.status-indicator.stopped {
    background-color: #dc3545;
}

.watch-details {
    margin-bottom: 15px;
}

.watch-details p {
    margin: 5px 0;
    font-size: 14px;
    color: #495057;
}

.watch-actions {
    display: flex;
    gap: 10px;
}

.no-watches {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px;
    color: #6c757d;
    font-style: italic;
}

/* Form Styling Enhancements */
.form-group textarea {
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
}

.form-group select,
.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="time"] {
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
}

.form-group small {
    color: #6c757d;
    font-size: 12px;
    display: block;
    margin-top: 5px;
}

/* Button Styling */
.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    margin-right: 10px;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-secondary:last-child {
    margin-right: 0;
}

/* Responsive Design Updates */
@media (max-width: 768px) {
    .days-selector {
        flex-direction: column;
        gap: 10px;
    }
    
    .frequency-input {
        flex-direction: column;
        align-items: stretch;
    }
    
    .frequency-input input,
    .frequency-input select {
        max-width: none;
    }
    
    .preview-details {
        grid-template-columns: 1fr;
    }
    
    .watch-header {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .watch-actions {
        justify-content: center;
    }
    
    .schedule-options,
    .watch-options,
    .change-detection-options {
        gap: 15px;
    }
}

/* Submitted Components Styling */
.submitted-components {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.component-tag {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 16px;
    padding: 4px 12px;
    font-size: 12px;
    color: #0066cc;
    font-family: 'Courier New', monospace;
    white-space: nowrap;
}

.component-tag:hover {
    background: #d1e7dd;
    border-color: #a3d2ca;
    color: #0f5132;
}
}