.waha-testing-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.test-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.test-card h3 {
    margin-top: 0;
    color: #1f2937;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 10px;
}

.status-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.status-card h3 {
    border-bottom-color: rgba(255,255,255,0.3);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: bold;
    margin: 15px 0;
}

.status-indicator.connected {
    color: #10b981;
}

.status-indicator.disconnected {
  color: #ef4444;
}

.pulse {
    display: inline-block;
    width: 12px;
    height: 12px;
 border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-indicator.connected .pulse {
    background: #10b981;
}

.status-indicator.disconnected .pulse {
    background: #ef4444;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-details {
    font-size: 14px;
    opacity: 0.9;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #374151;
}

.form-control {
    width: 100%;
  padding: 8px 12px;
    border: 1px solid #d1d5db;
 border-radius: 4px;
    font-family: monospace;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-info {
    background: #0ea5e9;
    color: white;
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.alert {
    padding: 12px 16px;
    border-radius: 4px;
    margin-top: 15px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
  border: 1px solid #6ee7b7;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.alert-warning {
background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.alert-info {
    background: #dbeafe;
    color: #0c4a6e;
    border: 1px solid #93c5fd;
}

.queue-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.stat-item {
 background: #f3f4f6;
 padding: 15px;
    border-radius: 4px;
    text-align: center;
}

.stat-item .label {
    display: block;
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 5px;
}

.stat-item .value {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #1f2937;
}

.stat-item .value.warning {
    color: #f59e0b;
}

.stat-item .value.danger {
    color: #ef4444;
}

.metrics-info {
    background: #f0f9ff;
    border-left: 4px solid #0ea5e9;
  padding: 15px;
    border-radius: 4px;
    margin-top: 15px;
}

.info-text {
    margin: 8px 0;
    font-size: 14px;
    color: #1f2937;
    font-weight: 500;
}

.info-text strong {
    color: #0ea5e9;
}

.message-log {
    max-height: 400px;
  overflow-y: auto;
    background: #f9fafb;
    border-radius: 4px;
}

.log-entry {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 13px;
}

.log-entry.unread {
    background: #fef3c7;
}

.log-entry.read {
    background: #d1fae5;
}

.log-timestamp {
    color: #6b7280;
    font-size: 11px;
    margin-bottom: 5px;
}

.log-content {
    color: #374151;
}

.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
}

.status-badge.read {
    background: #10b981;
    color: white;
}

.status-badge.unread {
    background: #f59e0b;
    color: white;
}

.policy-info {
    background: #f0f9ff;
    border-left: 4px solid #0ea5e9;
    padding: 15px;
    border-radius: 4px;
}

.policy-item {
    margin: 10px 0;
    padding: 10px;
    background: white;
    border-radius: 4px;
    border-left: 3px solid #0ea5e9;
}

.no-data {
    text-align: center;
    color: #9ca3af;
    padding: 20px;
    font-style: italic;
}

.alert pre {
    background: #1f2937;
    color: #10b981;
    padding: 10px;
    border-radius: 4px;
    overflow-x: auto;
    font-size: 12px;
    font-family: monospace;
}
