/* Error Logger Styles */
.error-logger-feedback {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 300px;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 10000;
    animation: slideInRight 0.3s ease;
    font-family: Lato, 'Lato Fallback', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.error-logger-content {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 15px;
}

.error-logger-icon {
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 2px;
}

.error-logger-message {
    flex: 1;
    color: #e0e7ff;
    line-height: 1.4;
    font-size: 0.9rem;
}

.error-logger-details-btn {
    background: none;
    border: none;
    color: #00d4ff;
    text-decoration: underline;
    cursor: none;
    font-size: 0.8rem;
    padding: 0;
    margin-top: 5px;
    display: block;
}

.error-logger-details {
    margin-top: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 0.8rem;
    line-height: 1.4;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.error-logger-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #e0e7ff;
    font-size: 1.2rem;
    cursor: none;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.error-logger-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Error Logger Types */
.error-logger-success .error-logger-icon {
    color: #10b981;
}

.error-logger-info .error-logger-icon {
    color: #00d4ff;
}

.error-logger-warning .error-logger-icon {
    color: #f59e0b;
}

.error-logger-error .error-logger-icon {
    color: #ef4444;
}

/* Multiple notifications stack */
.error-logger-feedback:nth-child(2) {
    top: 140px;
}

.error-logger-feedback:nth-child(3) {
    top: 260px;
}

.error-logger-feedback:nth-child(4) {
    top: 380px;
}

.error-logger-feedback:nth-child(5) {
    top: 500px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .error-logger-feedback {
        left: 10px;
        right: 10px;
        min-width: auto;
        max-width: none;
    }

    .error-logger-feedback:nth-child(2) {
        top: 120px;
    }

    .error-logger-feedback:nth-child(3) {
        top: 220px;
    }

    .error-logger-feedback:nth-child(4) {
        top: 320px;
    }

    .error-logger-feedback:nth-child(5) {
        top: 420px;
    }
}

/* Service Worker Update Notification */
.sw-update-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 320px;
    max-width: 400px;
    background: linear-gradient(135deg, #00d4ff, #00ff88);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 10001;
    animation: slideInRight 0.3s ease;
    font-family: Lato, 'Lato Fallback', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.sw-update-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
}

.sw-update-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.sw-update-message {
    flex: 1;
    color: #1e293b;
    font-weight: 600;
    font-size: 0.95rem;
}

.sw-update-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #059669;
    border: 1px solid rgba(5, 150, 105, 0.3);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: none;
    transition: all 0.2s ease;
}

.sw-update-btn:hover {
    background: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.sw-update-dismiss {
    background: none;
    border: none;
    color: #64748b;
    font-size: 0.8rem;
    cursor: none;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.sw-update-dismiss:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #475569;
}

/* Marque message */
.marque-message {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 10px;
    text-align: center;
    font-style: italic;
    color: #10b981;
}

/* Responsive adjustments for SW notification */
@media (max-width: 768px) {
    .sw-update-notification {
        left: 10px;
        right: 10px;
        min-width: auto;
        max-width: none;
    }

    .sw-update-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .sw-update-btn,
    .sw-update-dismiss {
        align-self: center;
    }
}