.proxylib-tester-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

.tester-header h2 {
    color: #333;
    margin-bottom: 10px;
}

.tester-description {
    color: #666;
    font-size: 16px;
    line-height: 1.5;
    max-width: 800px;
    margin: 0 auto;
}

.proxy-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

#proxy-input {
    width: 100%;
    min-height: 200px;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.4;
    resize: vertical;
    background: #fff;
    transition: border-color 0.3s ease;
}

#proxy-input:focus {
    border-color: #007cba;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.input-help {
    margin-top: 8px;
}

.input-help small {
    color: #666;
    font-size: 13px;
    line-height: 1.4;
}

.input-help code {
    background: #e9ecef;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 12px;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.button {
    background-color: #335EEA;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 140px;
}

.button:hover {
    background: #335EEA;
    transform: translateY(-1px);
}

.button:active {
    transform: translateY(0);
}

.button-loading {
    display: none;
}

.button:disabled {
    background: #a0a5aa !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.button:disabled:hover {
    background: #a0a5aa !important;
    transform: none !important;
}

.tester-settings small {
    color: #666;
    font-size: 13px;
}

.status-container {
    margin-bottom: 20px;
    min-height: 30px;
}

.proxy-success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #28a745;
}

.proxy-success-message .success-text {
    margin-bottom: 15px;
}

.proxy-success-message .success-text p {
    margin: 0 0 8px 0;
    color: #155724;
    font-size: 15px;
    font-weight: 500;
}

.proxy-success-message .success-text p:last-child {
    margin-bottom: 0;
}

.proxy-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 12px 16px;
    margin: 10px 0;
    color: #856404;
    font-size: 14px;
    font-weight: 500;
    border-left: 4px solid #ffc107;
}

.queue-url-container {
    background: #e8f4fd;
    border: 1px solid #b8daff;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}

.queue-url-label {
    font-weight: 600;
    color: #0c5460;
    margin-bottom: 8px;
    font-size: 14px;
}

.queue-url-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
}

.queue-url-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    background: #fff;
    color: #495057;
}

.queue-url-input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.copy-url-button {
    background: #007cba;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 70px;
}

.copy-url-button:hover {
    background: #005a87;
}

.copy-url-button.copy-success {
    background: #28a745;
}

.copy-url-button.copy-success:hover {
    background: #28a745;
}

.proxy-loading,
.proxy-status-message {
    background: #d1ecf1;
    color: #0c5460;
    padding: 12px 16px;
    border-radius: 4px;
    border-left: 4px solid #bee5eb;
}

.proxy-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 4px;
    border-left: 4px solid #f5c6cb;
}

.proxy-message {
    background: #fff3cd;
    color: #856404;
    padding: 12px 16px;
    border-radius: 4px;
    border-left: 4px solid #ffeaa7;
    text-align: center;
}

.results-container {
    margin-bottom: 30px;
}

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

.results-header h3 {
    color: #333;
    margin: 0;
}

#clear-results {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

#clear-results:hover {
    background: #5a6268;
}

.results-table-wrapper {
    overflow-x: auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.proxy-results-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.proxy-results-table th {
    background: #f8f9fa;
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #dee2e6;
}

.proxy-results-table td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}

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

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

.proxy-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    min-width: 70px;
    display: inline-block;
}

.status-working {
    background: #d4edda;
    color: #155724;
}

.status-failed {
    background: #f8d7da;
    color: #721c24;
}

.tester-footer {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.usage-notes h4 {
    color: #333;
    margin-bottom: 10px;
}

.usage-notes ul {
    color: #666;
    line-height: 1.6;
}

.usage-notes li {
    margin-bottom: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .proxylib-tester-container {
        padding: 15px;
    }
    
    .proxy-form {
        padding: 20px;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .button {
        width: 100%;
    }
    
    .results-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tester-settings {
        text-align: center;
    }
    
    .proxy-success-message .queue-url-wrapper,
    .queue-url-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .proxy-success-message .queue-url-input,
    .queue-url-input {
        font-size: 12px;
    }
    
    .proxy-success-message .copy-url-button,
    .copy-url-button {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .tester-header {
        text-align: left;
    }
    
    .proxy-results-table th,
    .proxy-results-table td {
        padding: 8px 6px;
        font-size: 14px;
    }
    
    .proxy-status {
        min-width: 60px;
        font-size: 11px;
    }
}