/* ================================================================
   NOTIFICATION SYSTEM STYLES
   ================================================================ */

/* Bell Button */
.notification-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.notification-bell-button {
    background: none;
    border: 2px solid white;
    color: white;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    position: relative;
}

.notification-bell-button:hover {
    background-color: white;
    color: #2563eb;
}

/* Unread Count Badge */
.notification-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger, #dc2626);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

/* Panel Backdrop */
.notification-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
}

/* Notification Panel */
.notification-panel {
    position: fixed;
    top: 70px;
    right: 20px;
    width: 400px;
    max-height: 500px;
    background: white;
    border-radius: var(--radius-md, 8px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1051;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.notification-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-light, #e5e7eb);
    background: var(--bg-light, #f9fafb);
}

.notification-panel-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark, #1f2937);
}

.notification-panel-header .btn-mark-all {
    background: none;
    border: none;
    color: var(--accent-primary, #2563eb);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm, 4px);
    transition: background 0.15s ease;
}

.notification-panel-header .btn-mark-all:hover {
    background: var(--bg-light, #eff6ff);
}

/* Notification List */
.notification-list {
    overflow-y: auto;
    max-height: 380px;
    flex: 1;
}

.notification-empty {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted, #6b7280);
    font-size: 0.9rem;
}

.notification-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light, #f3f4f6);
    cursor: pointer;
    transition: background 0.15s ease;
}

.notification-item:hover {
    background: var(--bg-light, #f9fafb);
}

.notification-item-unread {
    background: #eff6ff;
    border-left: 3px solid var(--accent-primary, #2563eb);
}

.notification-item-unread:hover {
    background: #dbeafe;
}

.notification-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.notification-icon-info {
    background: #dbeafe;
    color: #2563eb;
}

.notification-icon-warning {
    background: #fef3c7;
    color: #d97706;
}

.notification-icon-danger {
    background: #fee2e2;
    color: #dc2626;
}

.notification-icon-success {
    background: #d1fae5;
    color: #059669;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark, #1f2937);
    margin: 0 0 0.125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-message {
    font-size: 0.8rem;
    color: var(--text-muted, #6b7280);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-time {
    font-size: 0.7rem;
    color: var(--text-muted, #9ca3af);
    margin-top: 0.25rem;
}

/* Panel Footer */
.notification-panel-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border-light, #e5e7eb);
    text-align: center;
    background: var(--bg-light, #f9fafb);
}

.notification-panel-footer a {
    color: var(--accent-primary, #2563eb);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.notification-panel-footer a:hover {
    text-decoration: underline;
}

/* Full Page Notifications */
.notifications-page {
    max-width: 800px;
    margin: 0 auto;
}

.notifications-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.notifications-page-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.notifications-page-list {
    border: 1px solid var(--border-light, #e5e7eb);
    border-radius: var(--radius-md, 8px);
    overflow: hidden;
}

.notification-page-item {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-light, #f3f4f6);
    cursor: pointer;
    transition: background 0.15s ease;
}

.notification-page-item:last-child {
    border-bottom: none;
}

.notification-page-item:hover {
    background: var(--bg-light, #f9fafb);
}

.notification-page-item-unread {
    background: #eff6ff;
    border-left: 3px solid var(--accent-primary, #2563eb);
}

/* Responsive */
@media (max-width: 480px) {
    .notification-panel {
        left: 10px;
        right: 10px;
        width: auto;
    }
}
