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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 30px;
}

h1 {
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2em;
}

h2 {
    color: #555;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.input-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

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

label {
    font-weight: 600;
    color: #555;
    font-size: 1.1em;
}

#urlInput {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

#urlInput:focus {
    outline: none;
    border-color: #667eea;
}

#testButton {
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.3s;
}

#testButton:hover:not(:disabled) {
    transform: translateY(-2px);
}

#testButton:active:not(:disabled) {
    transform: translateY(0);
}

#testButton:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Progress Section */
.progress-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

.progress-bar-container {
    width: 100%;
    height: 30px;
    background: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    min-width: 50px;
}

/* Results Section */
.results-section {
    margin-top: 20px;
}

.results-summary {
    margin-bottom: 20px;
}

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

.summary-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #e0e0e0;
}

.summary-item.success {
    background: #d4edda;
    border-color: #28a745;
}

.summary-item.failure {
    background: #f8d7da;
    border-color: #dc3545;
}

.summary-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 5px;
}

.summary-value {
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

/* Results Table */
.results-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.results-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.results-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.results-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 13px;
}

.results-table tbody tr:hover {
    background: #f8f9fa;
}

.results-table tbody tr:last-child td {
    border-bottom: none;
}

.test-pass {
    background: #d4edda;
}

.test-fail {
    background: #f8d7da;
}

.test-pending {
    background: #e9ecef;
}

.test-running {
    background: #cfe2ff;
}

.status-pass {
    color: #28a745;
    font-weight: 600;
}

.status-fail {
    color: #dc3545;
    font-weight: 600;
}

.status-pending {
    color: #6c757d;
    font-weight: 600;
}

.status-running {
    color: #0d6efd;
    font-weight: 600;
}

.results-table th:nth-child(1),
.results-table td:nth-child(1) {
    width: 50px;
    text-align: center;
}

.results-table th:nth-child(2),
.results-table td:nth-child(2) {
    width: 30%;
}

.results-table th:nth-child(3),
.results-table td:nth-child(3) {
    width: 20%;
}

.results-table th:nth-child(4),
.results-table td:nth-child(4) {
    width: 12%;
}

.results-table th:nth-child(5),
.results-table td:nth-child(5) {
    width: 10%;
    text-align: center;
}

.results-table th:nth-child(6),
.results-table td:nth-child(6) {
    width: 18%;
}

.output-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

#output {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 20px;
    border-radius: 6px;
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

#output:empty::before {
    content: 'Output will appear here...';
    color: #666;
    font-style: italic;
}

/* Scrollbar styling for output */
#output::-webkit-scrollbar {
    width: 10px;
}

#output::-webkit-scrollbar-track {
    background: #2d2d2d;
    border-radius: 6px;
}

#output::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 6px;
}

#output::-webkit-scrollbar-thumb:hover {
    background: #666;
}
