/* Notification Bell Container */
.notification-bell-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.notification-bell-btn {
    position: relative;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.65rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #111;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Notification Dropdown */
.notification-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    transform: none;
    width: 360px;
    max-width: 90vw;
    max-height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideDown 0.3s ease;
}

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

.notification-dropdown-header {
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9fafb;
}

.notification-dropdown-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
}

.mark-all-read-btn {
    background: transparent;
    border: none;
    color: #f59e0b;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.mark-all-read-btn:hover {
    background: #fef3c7;
}

.notification-list {
    overflow-y: auto;
    flex: 1;
    max-height: 400px;
}

.notification-list::-webkit-scrollbar {
    width: 6px;
}

.notification-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.notification-list::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.notification-list::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.notification-item {
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

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

.notification-item.unread {
    background: #fef3c7;
    border-right: 3px solid #f59e0b;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    margin: 0 0 4px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
}

.notification-body {
    margin: 0 0 8px 0;
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.notification-time {
    font-size: 0.75rem;
    color: #9ca3af;
}

.notification-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.mark-read-btn,
.delete-notification-btn {
    background: transparent;
    border: none;
    color: #6b7280;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mark-read-btn:hover {
    background: #d1fae5;
    color: #10b981;
}

.delete-notification-btn:hover {
    background: #fee2e2;
    color: #ef4444;
}

.notification-dropdown-footer {
    padding: 12px 16px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    background: #f9fafb;
}

.view-all-link {
    color: #f59e0b;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.view-all-link:hover {
    color: #d97706;
}

.notification-loading,
.notification-empty,
.notification-error {
    padding: 40px 20px;
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    width: calc(100% - 40px);
}

.toast-notification {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    transform: translateX(-120%);
    opacity: 0;
    transition: all 0.3s ease;
    border-right: 4px solid #f59e0b;
    animation: slideInLeft 0.3s ease forwards;
}

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

.toast-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    margin: 0 0 4px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
}

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

.toast-close {
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.2s ease;
    line-height: 1;
}

.toast-close:hover {
    color: #ef4444;
}

/* Hidden class - scoped to notification elements only */
.notification-dropdown.hidden {
    display: none !important;
}
.notification-badge.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 640px) {
    .notification-bell-btn {
        font-size: 1.1rem;
        padding: 5px 6px;
    }

    .notification-badge {
        width: 16px;
        height: 16px;
        font-size: 0.6rem;
        top: 1px;
        right: 1px;
    }

    .notification-dropdown {
        position: fixed;
        top: 60px;
        left: 10px;
        right: 10px;
        width: auto;
        max-width: none;
        max-height: calc(100vh - 80px);
    }

    .toast-container {
        left: 10px;
        right: 10px;
        max-width: none;
        width: calc(100% - 20px);
    }
}

