/* Notification Bell Custom Styles */
.notification-bell-container {
    position: relative;
    display: inline-block;
}

.notification-bell-button {
    position: relative;
    padding: 8px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-bell-button:hover {
    background: #f9fafb;
    color: #374151;
    border-color: #d1d5db;
}

.notification-bell-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.notification-bell-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    border-radius: 50%;
    height: 18px;
    width: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    min-width: 18px;
}

.notification-test-btn {
    margin-left: 8px;
    padding: 4px 8px;
    background: #3b82f6;
    color: white;
    font-size: 11px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.notification-test-btn:hover {
    background: #2563eb;
}

.notification-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 8px;
    width: 320px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
    transition: all 0.2s ease;
    pointer-events: none;
}

.notification-dropdown.show {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

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

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

.mark-all-read {
    font-size: 12px;
    color: #3b82f6;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

.mark-all-read:hover {
    color: #2563eb;
}

.notification-list {
    max-height: 256px;
    overflow-y: auto;
}

.notification-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s ease;
}

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

.notification-item.unread {
    background-color: #eff6ff;
}

.notification-item.unread:hover {
    background-color: #dbeafe;
}

.notification-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.notification-text {
    flex: 1;
    margin-right: 8px;
}

.notification-message {
    font-size: 13px;
    color: #111827;
    margin: 0 0 4px 0;
    line-height: 1.4;
}

.notification-time {
    font-size: 11px;
    color: #6b7280;
    margin: 0;
}

.mark-read-btn {
    font-size: 11px;
    color: #3b82f6;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    white-space: nowrap;
}

.mark-read-btn:hover {
    color: #2563eb;
}

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

.view-all-link {
    font-size: 12px;
    color: #3b82f6;
    text-decoration: none;
}

.view-all-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

.notification-empty {
    padding: 24px 16px;
    text-align: center;
    color: #6b7280;
}

.notification-empty p {
    font-size: 13px;
    margin: 0;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .notification-bell-button {
        background: #1f2937;
        border-color: #374151;
        color: #d1d5db;
    }

    .notification-bell-button:hover {
        background: #374151;
        color: #f9fafb;
        border-color: #4b5563;
    }

    .notification-dropdown {
        background: #1f2937;
        border-color: #374151;
    }

    .notification-header {
        border-bottom-color: #374151;
    }

    .notification-title {
        color: #f9fafb;
    }

    .notification-item {
        border-bottom-color: #374151;
    }

    .notification-item:hover {
        background-color: #374151;
    }

    .notification-item.unread {
        background-color: #1e3a8a;
    }

    .notification-item.unread:hover {
        background-color: #1e40af;
    }

    .notification-message {
        color: #f9fafb;
    }

    .notification-time {
        color: #9ca3af;
    }

    .notification-footer {
        border-top-color: #374151;
    }

    .notification-empty {
        color: #9ca3af;
    }
}

/* Filament specific adjustments */
.filament-body .notification-bell-container {
    margin-left: 8px;
}

.filament-body .notification-dropdown {
    z-index: 9999;
}

.filament-notification-bell-wrapper {
    display: flex;
    align-items: center;
    margin-left: 16px;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .notification-dropdown {
        width: 280px;
        right: -20px;
    }
    
    .filament-notification-bell-wrapper {
        margin-left: 8px;
    }
} 