/**
 * Polling Connection Banner Styles
 * For Kids Quiz Reward plugin
 */

.kqr-polling-error-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff3cd;
    border-bottom: 1px solid #ffc107;
    padding: 12px 16px;
    z-index: 9999;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transform: translateY(-100%);
    animation: kqrSlideIn 0.3s forwards;
}

@keyframes kqrSlideIn {
    to {
        transform: translateY(0);
    }
}

.kqr-polling-error-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 12px;
}

.kqr-polling-error-icon {
    font-size: 1.2em;
}

.kqr-polling-error-text {
    flex: 1;
    color: #856404;
    font-weight: 500;
}

.kqr-polling-retry-btn {
    padding: 8px 16px;
    background: #ffc107;
    color: #000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.kqr-polling-retry-btn:hover {
    background: #e0a800;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .kqr-polling-error-banner {
        padding: 10px 12px;
    }
    
    .kqr-polling-error-content {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .kqr-polling-retry-btn {
        align-self: flex-end;
        padding: 6px 12px;
    }
}