/* Push Notification Styles */

/* Notification Bell Icon */
.notification-bell-container {
    position: relative;
    display: inline-block;
    margin-left: 15px;
}

.notification-bell-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #fff;
    font-size: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.notification-bell-btn:hover {
    transform: scale(1.1);
}

.notification-bell-btn i {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.notification-bell-btn.enabled {
    color: #4CAF50;
}

.notification-bell-btn.disabled {
    color: #999;
}

.notification-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    width: 8px;
    height: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Notification Permission Modal */
.notification-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.notification-modal.show {
    display: flex;
}

.notification-modal-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
    position: relative;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.notification-modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.notification-modal-icon {
    font-size: 60px;
    color: #4CAF50;
    margin-bottom: 15px;
}

.notification-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.notification-modal-description {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.notification-modal-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.notification-modal-features li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    color: #555;
}

.notification-modal-features li:before {
    content: "✓";
    color: #4CAF50;
    font-weight: bold;
    margin-right: 10px;
    font-size: 18px;
}

.notification-modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.notification-modal-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.notification-modal-btn.primary {
    background: #4CAF50;
    color: white;
}

.notification-modal-btn.primary:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.notification-modal-btn.secondary {
    background: #f0f0f0;
    color: #666;
}

.notification-modal-btn.secondary:hover {
    background: #e0e0e0;
}

.notification-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.notification-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

/* In-App Notification Toast */
.notification-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 16px;
    max-width: 400px;
    z-index: 9999;
    transform: translateX(450px);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.notification-toast.show {
    transform: translateX(0);
}

.notification-toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-toast-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.notification-toast-text {
    flex: 1;
}

.notification-toast-text strong {
    display: block;
    font-size: 16px;
    color: #333;
    margin-bottom: 4px;
}

.notification-toast-text p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.notification-toast-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.notification-toast-close:hover {
    background: #f0f0f0;
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .notification-modal-content {
        padding: 20px;
        max-width: 90%;
    }

    .notification-modal-title {
        font-size: 20px;
    }

    .notification-modal-description {
        font-size: 14px;
    }

    .notification-toast {
        right: 10px;
        left: 10px;
        max-width: calc(100% - 20px);
        top: 10px;
    }

    .notification-bell-container {
        margin-left: 10px;
    }
}

/* Loading Spinner */
.notification-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
