/* Cache Notification Styles */
.cache-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #57B33E 0%, #3d7a2a 100%);
    color: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    max-width: 400px;
    animation: slideInUp 0.4s ease-out;
}

@keyframes slideInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cache-notification.fade-out {
    animation: slideOutDown 0.3s ease-out forwards;
}

@keyframes slideOutDown {
    to {
        transform: translateY(20px);
        opacity: 0;
    }
}

.cache-notification-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cache-notification-text {
    flex: 1;
}

.cache-notification-text strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.cache-notification-text p {
    font-size: 14px;
    margin: 0;
    opacity: 0.95;
    line-height: 1.4;
}

.cache-notification-buttons {
    display: flex;
    gap: 10px;
}

.cache-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cache-btn.cache-accept {
    background: white;
    color: #57B33E;
}

.cache-btn.cache-accept:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cache-btn.cache-accept:active {
    transform: translateY(0);
}

.cache-btn.cache-reject {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cache-btn.cache-reject:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.cache-btn.cache-reject:active {
    transform: translateY(0);
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    .cache-notification {
        bottom: 20px;
        right: 15px;
        left: 15px;
        max-width: none;
    }

    .cache-notification-buttons {
        flex-direction: column;
    }

    .cache-btn {
        width: 100%;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .cache-notification {
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    }

    .cache-btn.cache-accept {
        background: #f0f0f0;
        color: #57B33E;
    }

    .cache-btn.cache-accept:hover {
        background: white;
    }
}
