/* ===== Notification Center Styles ===== */
/* Design System: "Refined Industrial" — copper=#c17f59 */

/* ---- Wrapper ---- */
.notification-dropdown-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* ---- Bell Button ---- */
.notification-bell {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm, 6px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    color: var(--text-secondary, #6b6b73);
    transition: all 150ms ease;
}

.notification-bell:hover {
    background: var(--bg-secondary, #f5f3f0);
    color: var(--text-primary, #1a1a1f);
}

.notification-bell svg {
    width: 20px;
    height: 20px;
    pointer-events: none;
}

/* ---- Unread Badge ---- */
.notification-badge {
    position: absolute;
    top: 6px;
    right: 5px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: var(--copper, #c17f59);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    border-radius: 8px;
    border: 2px solid var(--bg-primary, #faf9f7);
    pointer-events: none;
    z-index: 1;
}

.notification-badge.hidden {
    display: none;
}

/* ---- Dropdown Panel ---- */
.notification-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 380px;
    max-height: 480px;
    background: var(--bg-white, #ffffff);
    border: 1px solid var(--border-color, #e5e3df);
    border-radius: var(--radius-lg, 14px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
    animation: notifDropIn 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

.notification-dropdown.open {
    display: flex;
}

@keyframes notifDropIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ---- Dropdown Header ---- */
.notification-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 12px;
    border-bottom: 1px solid var(--border-light, #f0eeea);
    flex-shrink: 0;
}

.notification-dropdown-header h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #1a1a1f);
    margin: 0;
}

.notif-mark-all {
    font-size: 12px;
    color: var(--copper, #c17f59);
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-weight: 500;
    transition: color 150ms ease;
}

.notif-mark-all:hover {
    color: var(--copper-dark, #a66b47);
    text-decoration: underline;
}

/* ---- Notification List ---- */
.notification-list {
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.notification-list::-webkit-scrollbar {
    width: 4px;
}

.notification-list::-webkit-scrollbar-track {
    background: transparent;
}

.notification-list::-webkit-scrollbar-thumb {
    background: var(--border-color, #e5e3df);
    border-radius: 2px;
}

/* ---- Notification Item ---- */
.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 18px;
    cursor: pointer;
    transition: background 150ms ease;
    border-bottom: 1px solid var(--border-light, #f0eeea);
    position: relative;
}

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

.notification-item:hover {
    background: var(--bg-secondary, #f5f3f0);
}

.notification-item.unread {
    background: rgba(193, 127, 89, 0.04);
}

.notification-item.unread:hover {
    background: rgba(193, 127, 89, 0.08);
}

/* ---- Item Icon ---- */
.notification-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.notification-item-icon svg {
    width: 16px;
    height: 16px;
}

.notification-item-icon.request {
    background: var(--blue-light, #e8f0f8);
    color: var(--blue, #4a7bbd);
}

.notification-item-icon.completed {
    background: var(--green-light, #e8f5eb);
    color: var(--green, #5a9a6e);
}

.notification-item-icon.schedule {
    background: var(--amber-light, #fdf5e6);
    color: var(--amber, #c9973e);
}

.notification-item-icon.invoice {
    background: rgba(193, 127, 89, 0.12);
    color: var(--copper, #c17f59);
}

.notification-item-icon.lead {
    background: var(--purple-light, #f3eff8);
    color: var(--purple, #8b6bb3);
}

/* ---- Item Content ---- */
.notification-item-content {
    flex: 1;
    min-width: 0;
}

.notification-item-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary, #1a1a1f);
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-item-desc {
    font-size: 12px;
    color: var(--text-secondary, #6b6b73);
    margin: 0 0 4px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-item-time {
    font-size: 11px;
    color: var(--text-tertiary, #9b9ba3);
    font-weight: 500;
}

/* ---- Unread Dot ---- */
.notification-unread-dot {
    width: 7px;
    height: 7px;
    background: var(--copper, #c17f59);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 6px;
}

/* ---- Empty State ---- */
.notification-empty {
    padding: 36px 24px;
    text-align: center;
    color: var(--text-tertiary, #9b9ba3);
}

.notification-empty svg {
    width: 36px;
    height: 36px;
    margin: 0 auto 10px;
    display: block;
    opacity: 0.4;
}

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

/* ---- Dropdown Footer ---- */
.notification-dropdown-footer {
    padding: 12px 18px;
    border-top: 1px solid var(--border-light, #f0eeea);
    text-align: center;
    flex-shrink: 0;
}

.notification-view-all {
    font-size: 13px;
    color: var(--copper, #c17f59);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    transition: color 150ms ease;
}

.notification-view-all:hover {
    color: var(--copper-dark, #a66b47);
    text-decoration: underline;
}

/* ---- Responsive: narrow screens ---- */
@media (max-width: 480px) {
    .notification-dropdown {
        width: calc(100vw - 24px);
        right: -8px;
    }
}
