/* Notification Bell Icon */
.notification-bell {
    position: relative;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.notification-bell:hover {
    background: rgba(255, 255, 255, 0.1);
}

.notification-bell i {
    font-size: 1.5rem;
    color: #fff;
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    border: 2px solid #00B4D8;
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Notification Panel */
.notification-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.notification-panel.active {
    right: 0;
}

.notification-panel-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #00B4D8 0%, #0096c7 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.notification-panel-header h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.2s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.notification-actions {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    gap: 1rem;
}

.notification-action-btn {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 1px solid #00B4D8;
    background: white;
    color: #00B4D8;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.notification-action-btn:hover {
    background: #00B4D8;
    color: white;
}

.notification-action-btn.danger {
    border-color: #ff4444;
    color: #ff4444;
}

.notification-action-btn.danger:hover {
    background: #ff4444;
    color: white;
}

.notification-list {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.notification-item {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s ease;
    position: relative;
}

.notification-item:hover {
    background: #f8f9fa;
}

.notification-item.unread {
    background: #e3f2fd;
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: #00B4D8;
    border-radius: 0 4px 4px 0;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.notification-title {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    margin: 0;
    flex: 1;
}

.notification-time {
    font-size: 0.75rem;
    color: #999;
    white-space: nowrap;
    margin-left: 0.5rem;
}

.notification-body {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.notification-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    margin-top: 0.5rem;
}

.notification-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
    color: #999;
}

.notification-empty i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.notification-empty p {
    margin: 0;
    font-size: 1rem;
}

/* Notification Overlay */
.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.notification-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 350px;
    z-index: 10000;
    animation: slideInRight 0.3s ease;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.toast-notification.hiding {
    animation: slideOutRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

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

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    color: #333;
    margin: 0 0 0.3rem 0;
    font-size: 0.95rem;
}

.toast-body {
    color: #666;
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.toast-close:hover {
    background: #f0f0f0;
    color: #333;
}

/* Permission Request Banner */
.notification-permission-banner {
    background: linear-gradient(135deg, #00B4D8 0%, #0096c7 100%);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.permission-banner-icon {
    font-size: 2rem;
}

.permission-banner-content {
    flex: 1;
}

.permission-banner-title {
    font-weight: 600;
    margin: 0 0 0.3rem 0;
    font-size: 1rem;
}

.permission-banner-text {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.9;
}

.permission-banner-actions {
    display: flex;
    gap: 0.5rem;
}

.permission-banner-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.permission-banner-btn.primary {
    background: white;
    color: #00B4D8;
}

.permission-banner-btn.primary:hover {
    background: #f0f0f0;
}

.permission-banner-btn.secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.permission-banner-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .notification-panel {
        max-width: 100%;
    }

    .toast-notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .permission-banner-actions {
        flex-direction: column;
    }

    .permission-banner-btn {
        width: 100%;
    }
}

/* Loading State */
.notification-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.notification-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f0f0f0;
    border-top-color: #00B4D8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}