/**
 * AUTOCORE360 Admin Panel - Notifications
 * Notification panel, notification items
 */

/* ============ NOTIFICATIONS PANEL ============ */
.notifications-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: var(--z-modal);
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.notifications-panel {
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: var(--surface);
    box-shadow: var(--shadow-2xl);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s var(--ease-out);
}

.notifications-panel-overlay.active .notifications-panel {
    transform: translateX(0);
}

.notifications-panel__header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface);
}

.notifications-panel__header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.notifications-panel__header h3 i {
    color: var(--primary);
}

.notifications-panel__close {
    width: 2rem;
    height: 2rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.notifications-panel__close:hover {
    background: var(--surface-hover);
    color: var(--text);
}

.notifications-panel__content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.notifications-panel__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
    color: var(--text-muted);
}

.notifications-panel__empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.notifications-panel__empty p {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.notifications-panel__empty span {
    margin-top: 0.25rem;
    font-size: 0.875rem;
}

.notifications-panel__footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--background);
}

/* Notification Items */
.notification-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s ease;
    cursor: pointer;
}

.notification-item:hover {
    background: var(--surface-hover);
}

.notification-item.unread {
    background: rgba(37, 99, 235, 0.05);
}

.notification-item.unread:hover {
    background: rgba(37, 99, 235, 0.08);
}

.notification-item__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.notification-item__icon.info {
    background: rgba(14, 165, 233, 0.1);
    color: var(--info);
}

.notification-item__icon.success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.notification-item__icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.notification-item__icon.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

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

.notification-item__title {
    font-weight: 600;
    color: var(--text);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.notification-item__message {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-item__time {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 0.375rem;
}

/* Dark mode adjustments */
[data-theme="dark"] .notification-item.unread {
    background: rgba(220, 38, 38, 0.05);
}

[data-theme="dark"] .notification-item.unread:hover {
    background: rgba(220, 38, 38, 0.08);
}

/* Mobile responsive */
@media (max-width: 480px) {
    .notifications-panel {
        max-width: 100%;
    }
}
