/* ========================================
   NOTIFICATION PANEL (Slide-in drawer)
   ======================================== */
.notification-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    height: 100vh;
    height: 100dvh;
    background: var(--o365-white, #fff);
    box-shadow: -4px 0 24px rgba(0,0,0,0.15);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.25s ease;
}

.notification-panel.open {
    transform: translateX(0);
}

/* ========================================
   NOTIFICATION ITEMS
   ======================================== */
.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--o365-gray-30, #edebe9);
    cursor: pointer;
    transition: background-color 0.15s;
    position: relative;
}

.notification-item:hover {
    background-color: var(--o365-gray-20, #f3f2f1);
}

.notification-item.unread {
    background-color: var(--o365-primary-light, #deecf9);
    border-left: 3px solid var(--o365-primary, #0078d4);
}

.notification-item.unread:hover {
    background-color: color-mix(in srgb, var(--o365-primary-light, #deecf9) 80%, var(--o365-gray-20, #f3f2f1));
}

.notification-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.notification-icon.type-info {
    background: var(--tint-blue-bg, #e5f1fb);
    color: var(--o365-primary, #0078d4);
}

.notification-icon.type-success {
    background: var(--tint-green-bg, #dff6dd);
    color: var(--o365-green, #107c10);
}

.notification-icon.type-warning {
    background: var(--tint-yellow-bg, #fff4ce);
    color: var(--yellow-text, #986f0b);
}

.notification-icon.type-error {
    background: var(--tint-red-bg, #fde7e9);
    color: var(--o365-red, #d13438);
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    font-size: 13px;
    color: var(--o365-gray-160, #323130);
    line-height: 1.3;
}

.notification-message {
    font-size: 12px;
    color: var(--o365-gray-130, #605e5c);
    line-height: 1.4;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.notification-time {
    font-size: 11px;
    color: var(--o365-gray-90, #a19f9d);
    margin-top: 4px;
}

.notification-dismiss {
    opacity: 0;
    transition: opacity 0.15s;
    color: var(--o365-gray-90, #a19f9d);
    padding: 2px 6px;
    line-height: 1;
}

.notification-item:hover .notification-dismiss {
    opacity: 1;
}

/* ========================================
   NOTIFICATION BELL BADGE
   ======================================== */
.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: #d13438;
    color: white;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    line-height: 1;
}

/* ========================================
   FULL PAGE LIST
   ======================================== */
.notification-list-item {
    padding: 16px 20px !important;
    transition: background-color 0.15s;
}

.notification-list-item:hover {
    background-color: var(--o365-gray-20, #f3f2f1) !important;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 480px) {
    .notification-panel {
        width: 100vw;
    }
}
