/**
 * Scribigo Orders Auto-Refresh CSS
 * 
 * Styling für die Auto-Refresh-Funktionalität
 * Kompatibel mit dem Astra-Theme und der bestehenden Scribigo-Styling
 */

/* Auto-Refresh Status */
.scribigo-auto-refresh-status {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    color: var(--ast-global-color-6);
    margin-right: 15px;
}

.scribigo-auto-refresh-indicator {
    display: inline-flex;
    width: 12px;
    height: 12px;
    margin-right: 6px;
    border-radius: 50%;
    background-color: var(--ast-global-color-6);
    opacity: 0.3;
}

.scribigo-auto-refresh-indicator.active {
    background-color: var(--ast-global-color-0);
    opacity: 1;
    animation: scribigo-pulse 2s infinite;
}

.scribigo-auto-refresh-indicator i {
    font-size: 0.7rem;
}

.scribigo-auto-refresh-text {
    color: var(--ast-global-color-6);
}

/* Auto-Refresh Toggle-Link */
.scribigo-auto-refresh-toggle {
    display: inline-flex;
    align-items: center;
    margin-right: 15px;
    color: var(--ast-global-color-0);
    text-decoration: none !important;
    font-size: 0.85rem;
}

.scribigo-auto-refresh-toggle:hover {
    color: var(--ast-global-color-1);
}

.scribigo-auto-refresh-toggle:hover .scribigo-auto-refresh-toggle-text {
    text-decoration: underline;
}

.scribigo-auto-refresh-toggle i {
    margin-right: 4px;
}

/* Update-Benachrichtigung */
.scribigo-update-notification {
    background-color: var(--ast-global-color-4);
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: scribigo-slide-down 0.3s ease-out;
}

.scribigo-update-notification i {
    margin-right: 10px;
    font-size: 1rem;
}

/* Animationen */
@keyframes scribigo-pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 1;
    }
}

@keyframes scribigo-slide-down {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design Anpassungen */
@media screen and (max-width: 576px) {
    .scribigo-auto-refresh-status {
        margin-bottom: 10px;
    }
    
    .scribigo-auto-refresh-toggle {
        margin-bottom: 10px;
    }
}