/**
 * Notification Bell Component Styles
 */

/* Container */
.notification-container {
    position: relative;
    margin-right: 15px;
}

/* Bell Button */
.notification-bell {
    position: relative;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-bell:focus {
    outline: none;
    background: transparent;
}

.notification-bell:hover {
    background: var(--bg-hover, rgba(0, 0, 0, 0.05));
}

.notification-bell svg {
    display: block;
}

/* Badge */
.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--color-primary);
    color: white;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    font-size: 11px;
    font-weight: 600;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Dropdown */
.notification-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-container);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 360px;
    max-height: 480px;
    overflow-y: auto;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 1000;
}

.notification-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.notification-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Notification List */
.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
}

.notification-empty p {
    margin: 0;
}

/* Notification Item */
.notification-item {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background: var(--bg-hover, rgba(0, 0, 0, 0.03));
}

.notification-content {
    margin-bottom: 12px;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
}

.notification-content strong {
    font-weight: 600;
    color: var(--color-primary);
}

.notification-message {
    margin-top: 8px;
    padding: 8px 12px;
    background: var(--bg-section, #f8f9fa);
    border-left: 3px solid var(--color-primary);
    border-radius: 4px;
    font-style: italic;
    color: var(--text-secondary);
    font-size: 13px;
}

.notification-meta {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Actions */
.notification-actions {
    display: flex;
    gap: 8px;
}

.notification-actions button {
    flex: 1;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.notification-actions .btn-accept {
    background: var(--color-primary);
    color: white;
}

.notification-actions .btn-accept:hover:not(:disabled) {
    background: var(--color-primary-dark, #0056b3);
}

.notification-actions .btn-decline {
    background: var(--bg-section, #f8f9fa);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.notification-actions .btn-decline:hover:not(:disabled) {
    background: var(--bg-hover, rgba(0, 0, 0, 0.05));
}

.notification-actions button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Toast Notification */
.notification-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--bg-container);
    color: var(--text-primary);
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    border-left: 4px solid var(--color-primary);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 10000;
    max-width: 300px;
}

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

/* Scrollbar for dropdown */
.notification-list::-webkit-scrollbar {
    width: 8px;
}

.notification-list::-webkit-scrollbar-track {
    background: var(--bg-section, #f8f9fa);
    border-radius: 4px;
}

.notification-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.notification-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .notification-dropdown {
        width: 320px;
        right: -10px;
    }

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

@media (max-width: 480px) {
    .notification-dropdown {
        width: calc(100vw - 20px);
        right: -80px;
    }
}
