/* ============================================================================
   API Test Generator - Modern DevOps Dashboard Stylesheet
   ============================================================================ */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
}

/* App Layout */
.app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}

.logo-icon {
    color: #4a9eff;
    filter: drop-shadow(0 0 10px rgba(74, 158, 255, 0.5));
}

.logo-text {
    font-size: 2em;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #4a9eff 0%, #7b68ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1em;
    color: #a0a0a0;
    font-weight: 400;
}

/* Main Content */
.main {
    flex: 1;
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.6s ease;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-icon {
    margin-bottom: 20px;
}

.hero-icon svg {
    color: #4a9eff;
    filter: drop-shadow(0 0 20px rgba(74, 158, 255, 0.4));
    animation: float 3s ease-in-out infinite;
}

.hero-title {
    font-size: 2.5em;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.2em;
    color: #a0a0a0;
    line-height: 1.6;
}

/* Upload Section */
.upload-section {
    margin-bottom: 60px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h3 {
    font-size: 1.8em;
    color: #fff;
    margin-bottom: 10px;
}

.section-header p {
    color: #a0a0a0;
    font-size: 1em;
}

.upload-container {
    max-width: 700px;
    margin: 0 auto;
}

.upload-area {
    border: 2px dashed rgba(74, 158, 255, 0.3);
    border-radius: 12px;
    padding: 60px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(26, 26, 46, 0.5);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(74, 158, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.upload-area:hover {
    border-color: rgba(74, 158, 255, 0.6);
    background: rgba(26, 26, 46, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(74, 158, 255, 0.2);
}

.upload-area:hover::before {
    opacity: 1;
}

.upload-area.dragover {
    border-color: #4a9eff;
    background: rgba(74, 158, 255, 0.1);
    transform: scale(1.02);
    box-shadow: 0 0 40px rgba(74, 158, 255, 0.3);
}

.upload-icon {
    width: 64px;
    height: 64px;
    color: #4a9eff;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.upload-area:hover .upload-icon {
    transform: translateY(-5px);
    filter: drop-shadow(0 5px 15px rgba(74, 158, 255, 0.4));
}

.upload-text {
    font-size: 1.2em;
    color: #fff;
    margin-bottom: 8px;
    font-weight: 600;
}

.upload-hint {
    font-size: 1em;
    color: #a0a0a0;
    margin-bottom: 8px;
}

.upload-formats {
    font-size: 0.9em;
    color: #707070;
}

/* File Info */
.file-info {
    background: rgba(26, 26, 46, 0.7);
    border: 1px solid rgba(74, 158, 255, 0.3);
    padding: 20px;
    margin: 20px 0;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    animation: slideIn 0.3s ease;
}

.file-info-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.file-icon {
    color: #4a9eff;
    flex-shrink: 0;
}

.file-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.file-name {
    color: #fff;
    font-weight: 600;
    word-break: break-all;
}

.file-status {
    color: #4a9eff;
    font-size: 0.9em;
}

/* Buttons */
.btn-generate,
.btn-action,
.btn-clear {
    border: none;
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
}

.btn-generate {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #4a9eff 0%, #7b68ee 100%);
    color: #fff;
    margin-top: 20px;
    font-size: 1.1em;
    box-shadow: 0 4px 15px rgba(74, 158, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-generate::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-generate:hover:not(:disabled)::before {
    left: 100%;
}

.btn-generate:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(74, 158, 255, 0.4);
}

.btn-generate:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-action {
    padding: 10px 18px;
    background: rgba(26, 26, 46, 0.7);
    color: #e0e0e0;
    border: 1px solid rgba(74, 158, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-action:hover {
    background: rgba(74, 158, 255, 0.2);
    color: #fff;
    border-color: #4a9eff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 158, 255, 0.2);
}

.btn-action svg {
    width: 18px;
    height: 18px;
}

.btn-clear {
    padding: 8px;
    background: transparent;
    color: #888;
}

.btn-clear:hover {
    color: #ff6b6b;
    transform: rotate(90deg);
}

.btn-icon {
    flex-shrink: 0;
}

.btn-text {
    display: inline;
}

.btn-spinner {
    display: inline-flex;
    align-items: center;
}

.spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

.spinner circle {
    stroke: #fff;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* Status Message */
.status-message {
    padding: 16px 20px;
    border-radius: 8px;
    margin-top: 20px;
    font-weight: 500;
    font-size: 0.95em;
    animation: slideIn 0.3s ease;
    backdrop-filter: blur(10px);
}

.status-message.success {
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
    border-left: 4px solid #4caf50;
}

.status-message.error {
    background: rgba(244, 67, 54, 0.2);
    color: #e57373;
    border-left: 4px solid #f44336;
}

.status-message.info {
    background: rgba(74, 158, 255, 0.2);
    color: #64b5f6;
    border-left: 4px solid #4a9eff;
}

/* How It Works Section */
.how-it-works {
    margin-bottom: 60px;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.steps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.step-card {
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    background: rgba(26, 26, 46, 0.5);
    border: 1px solid rgba(74, 158, 255, 0.2);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.1) 0%, rgba(123, 104, 238, 0.1) 100%);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: rgba(74, 158, 255, 0.5);
    box-shadow: 0 8px 30px rgba(74, 158, 255, 0.2);
}

.step-card:hover::before {
    opacity: 1;
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4a9eff 0%, #7b68ee 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2em;
    color: #fff;
    box-shadow: 0 4px 15px rgba(74, 158, 255, 0.4);
}

.step-icon {
    margin: 20px 0;
    position: relative;
    z-index: 1;
}

.step-icon svg {
    color: #4a9eff;
    filter: drop-shadow(0 0 10px rgba(74, 158, 255, 0.3));
}

.step-card h4 {
    font-size: 1.2em;
    color: #fff;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.step-card p {
    color: #a0a0a0;
    font-size: 0.95em;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.step-arrow {
    color: rgba(74, 158, 255, 0.5);
    flex-shrink: 0;
}

/* Results Section */
.results-section {
    animation: fadeInUp 0.6s ease;
    margin-bottom: 40px;
}

.results-meta {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.endpoint-badge {
    background: rgba(74, 158, 255, 0.2);
    color: #4a9eff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(74, 158, 255, 0.3);
}

.endpoint-badge svg {
    width: 16px;
    height: 16px;
}

/* Endpoints Table */
.endpoints-table {
    margin: 30px 0;
    background: rgba(26, 26, 46, 0.5);
    border: 1px solid rgba(74, 158, 255, 0.2);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

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

.endpoints-table thead {
    background: rgba(74, 158, 255, 0.1);
}

.endpoints-table th {
    padding: 15px 20px;
    text-align: left;
    color: #4a9eff;
    font-weight: 600;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.endpoints-table td {
    padding: 12px 20px;
    color: #e0e0e0;
    border-top: 1px solid rgba(74, 158, 255, 0.1);
}

.endpoints-table tbody tr {
    transition: background 0.2s ease;
}

.endpoints-table tbody tr:hover {
    background: rgba(74, 158, 255, 0.05);
}

/* Code Container */
.code-container {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(74, 158, 255, 0.2);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.code-header {
    background: rgba(26, 26, 46, 0.7);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(74, 158, 255, 0.2);
    flex-wrap: wrap;
    gap: 15px;
}

.code-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4a9eff;
    font-weight: 600;
    font-size: 0.95em;
}

.code-label svg {
    width: 16px;
    height: 16px;
}

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



/* Scrollbar Styling */
.code-block::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.code-block::-webkit-scrollbar-track {
    background: rgba(26, 26, 46, 0.3);
    border-radius: 5px;
}

.code-block::-webkit-scrollbar-thumb {
    background: rgba(74, 158, 255, 0.3);
    border-radius: 5px;
}

.code-block::-webkit-scrollbar-thumb:hover {
    background: rgba(74, 158, 255, 0.5);
}

/* Footer */
.footer {
    background: rgba(26, 26, 46, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
    text-align: center;
    color: #a0a0a0;
    font-size: 0.9em;
    backdrop-filter: blur(10px);
}

.footer p {
    margin: 8px 0;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer a {
    color: #4a9eff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: #7b68ee;
    text-decoration: underline;
}

.separator {
    color: #505050;
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 25px 15px;
    }

    .logo-text {
        font-size: 1.5em;
    }

    .tagline {
        font-size: 0.9em;
    }

    .main {
        padding: 40px 15px;
    }

    .hero-title {
        font-size: 2em;
    }

    .hero-subtitle {
        font-size: 1em;
    }

    .section-header h3 {
        font-size: 1.5em;
    }

    .upload-area {
        padding: 40px 20px;
    }

    .upload-icon {
        width: 48px;
        height: 48px;
    }

    .steps-container {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .step-card {
        max-width: 100%;
    }

    .code-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .code-actions {
        width: 100%;
    }

    .btn-action {
        flex: 1;
        justify-content: center;
    }

    .code-block {
        font-size: 0.85em;
        padding: 20px;
        max-height: 400px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.3em;
    }

    .hero-icon svg {
        width: 60px;
        height: 60px;
    }

    .hero-title {
        font-size: 1.6em;
    }

    .hero-subtitle {
        font-size: 0.95em;
    }

    .upload-area {
        padding: 30px 15px;
    }

    .btn-generate {
        padding: 14px 20px;
        font-size: 1em;
    }

    .code-block {
        font-size: 0.8em;
        padding: 15px;
    }

    .footer-links {
        flex-direction: column;
        gap: 5px;
    }

    .separator {
        display: none;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}


/* ============================================================================
   Test Summary Card - v9.0
   ============================================================================ */

.test-summary-card {
    background: rgba(26, 26, 46, 0.5);
    border: 1px solid rgba(74, 158, 255, 0.2);
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    backdrop-filter: blur(10px);
    animation: slideIn 0.3s ease;
}

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

.summary-header h4 {
    font-size: 1.1em;
    color: #fff;
    margin: 0;
}

.execution-time {
    color: #a0a0a0;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 5px;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.stat-card {
    background: rgba(10, 10, 10, 0.5);
    border: 1px solid rgba(74, 158, 255, 0.2);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 158, 255, 0.2);
}

.stat-card svg {
    flex-shrink: 0;
}

.stat-passed {
    border-left: 3px solid #4caf50;
}

.stat-passed svg {
    color: #4caf50;
}

.stat-failed {
    border-left: 3px solid #f44336;
}

.stat-failed svg {
    color: #f44336;
}

.stat-total {
    border-left: 3px solid #4a9eff;
}

.stat-total svg {
    color: #4a9eff;
}

.stat-endpoints {
    border-left: 3px solid #9c27b0;
}

.stat-endpoints svg {
    color: #9c27b0;
}

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

.stat-value {
    font-size: 1.8em;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.stat-label {
    font-size: 0.85em;
    color: #a0a0a0;
    margin-top: 4px;
}

/* Test Results List */
.test-results-list {
    background: rgba(26, 26, 46, 0.5);
    border: 1px solid rgba(74, 158, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    backdrop-filter: blur(10px);
    animation: slideIn 0.3s ease;
}

.results-list-header {
    margin-bottom: 15px;
}

.results-list-header h4 {
    font-size: 1.1em;
    color: #fff;
    margin: 0;
}

.results-list-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.test-result-item {
    background: rgba(10, 10, 10, 0.5);
    border: 1px solid rgba(74, 158, 255, 0.1);
    border-radius: 6px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.test-result-item:hover {
    background: rgba(74, 158, 255, 0.05);
}

.test-result-item.passed {
    border-left: 3px solid #4caf50;
}

.test-result-item.failed {
    border-left: 3px solid #f44336;
}

.test-result-item.skipped {
    border-left: 3px solid #ff9800;
}

.test-result-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.test-result-icon.passed {
    color: #4caf50;
}

.test-result-icon.failed {
    color: #f44336;
}

.test-result-icon.skipped {
    color: #ff9800;
}

.test-result-name {
    flex: 1;
    color: #e0e0e0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
}

.test-result-status {
    font-size: 0.85em;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
}

.test-result-status.passed {
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
}

.test-result-status.failed {
    background: rgba(244, 67, 54, 0.2);
    color: #e57373;
}

.test-result-status.skipped {
    background: rgba(255, 152, 0, 0.2);
    color: #ffb74d;
}

/* Environment Info */
.environment-info {
    background: rgba(26, 26, 46, 0.3);
    border: 1px solid rgba(74, 158, 255, 0.15);
    border-radius: 8px;
    padding: 12px 15px;
    margin: 20px 0;
    backdrop-filter: blur(10px);
}

.env-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #a0a0a0;
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 8px;
}

.env-header svg {
    width: 14px;
    height: 14px;
}

.env-details {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.env-item {
    color: #a0a0a0;
    font-size: 0.85em;
}

.env-item strong {
    color: #e0e0e0;
}

/* Code Wrapper with Line Numbers */
.code-wrapper {
    display: flex;
    position: relative;
    max-height: 500px;
    overflow: auto;
    border-radius: 8px;
    background: rgba(10, 10, 10, 0.5);
}

.line-numbers {
    background: rgba(10, 10, 10, 0.7);
    color: #606060;
    padding: 16px 15px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    line-height: 1.6;
    text-align: right;
    user-select: none;
    border-right: 1px solid rgba(74, 158, 255, 0.1);
    min-width: 50px;
    flex-shrink: 0;
    position: sticky;
    left: 0;
}

.code-block {
    color: #d4d4d4;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    line-height: 1.6;
    padding: 16px;
    margin: 0;
    white-space: pre;
    background: transparent;
    flex: 1;
    min-width: 0;
}

/* Console Output Section */
.console-output-section {
    margin: 20px 0;
    animation: slideIn 0.3s ease;
}

.toggle-console-btn {
    width: 100%;
    background: rgba(26, 26, 46, 0.5);
    border: 1px solid rgba(74, 158, 255, 0.2);
    border-radius: 8px;
    padding: 12px 15px;
    color: #e0e0e0;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.toggle-console-btn:hover {
    background: rgba(74, 158, 255, 0.1);
    border-color: rgba(74, 158, 255, 0.4);
}

.toggle-console-btn svg {
    transition: transform 0.3s ease;
}

.toggle-console-btn.expanded svg {
    transform: rotate(180deg);
}

.console-output {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(74, 158, 255, 0.2);
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 20px;
    margin-top: -8px;
    max-height: 400px;
    overflow-y: auto;
}

.console-output pre {
    margin: 0;
}

.console-output code {
    color: #d4d4d4;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85em;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Button Improvements */
.btn-action .btn-label {
    display: inline;
}

.btn-spinner-inline {
    display: inline-flex;
    align-items: center;
    margin-left: 5px;
}

.spinner-small {
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
}

.spinner-small circle {
    stroke: #fff;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

.btn-action:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

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

/* Sticky Code Header */
.code-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
}

/* Responsive Adjustments for New Components */
@media (max-width: 768px) {
    .summary-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-card {
        padding: 12px;
    }

    .stat-value {
        font-size: 1.5em;
    }

    .env-details {
        flex-direction: column;
        gap: 8px;
    }

    .line-numbers {
        padding: 25px 10px;
        min-width: 40px;
        font-size: 0.8em;
    }

    .code-block {
        font-size: 0.8em;
    }
}

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

    .test-summary-card {
        padding: 15px;
    }

    .test-results-list {
        padding: 15px;
    }

    .test-result-item {
        padding: 10px 12px;
        flex-wrap: wrap;
    }

    .test-result-name {
        font-size: 0.85em;
    }

    .line-numbers {
        display: none;
    }
}
