/* Gudang Masker - Header Notifications Styling
   Untuk ikon lonceng + badge + dropdown panel di header. */

.notif-wrapper {
    position: relative;
    display: inline-block;
}

/* Tombol lonceng */
.notif-btn {
    position: relative !important;
    padding: 0 4px !important;
    text-decoration: none;
}

.notif-btn .material-icons {
    font-size: 26px;
    color: #333;
}

.notif-btn:hover .material-icons {
    color: #667eea;
}

/* Badge jumlah unread */
.notif-badge {
    position: absolute;
    top: 6px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: #e91e63;
    color: white;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 0 0 2px white;
    pointer-events: none;
}

/* Dropdown panel */
.notif-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 340px;
    max-width: calc(100vw - 24px);
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    overflow: hidden;
    animation: notifSlideIn 0.18s ease-out;
}

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

.notif-panel[hidden] {
    display: none;
}

.notif-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}

.notif-panel-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #222;
}

.notif-mark-all {
    background: none;
    border: none;
    color: #667eea;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 6px;
    border-radius: 4px;
}

.notif-mark-all:hover {
    background: #f0f0f8;
}

.notif-panel-body {
    max-height: 360px;
    overflow-y: auto;
}

.notif-panel-footer {
    border-top: 1px solid #f0f0f0;
    padding: 10px 16px;
    text-align: center;
    background: #fafafa;
}

.notif-view-all {
    color: #667eea;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.notif-view-all:hover {
    text-decoration: underline;
}

/* Item notifikasi */
.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none !important;
    color: inherit;
    transition: background 0.15s;
    position: relative;
}

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

.notif-item:hover {
    background: #f7f8fc;
}

.notif-item.is-read {
    opacity: 0.7;
}

.notif-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notif-icon .material-icons {
    font-size: 20px;
}

.notif-content {
    flex: 1;
    min-width: 0;
}

.notif-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #222;
    margin-bottom: 2px;
    line-height: 1.3;
}

.notif-message {
    font-size: 12.5px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 4px;
    word-wrap: break-word;
}

.notif-time {
    font-size: 11px;
    color: #999;
}

.notif-dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    background: #e91e63;
    border-radius: 50%;
    align-self: center;
    margin-left: 4px;
}

/* Empty state */
.notif-empty {
    text-align: center;
    padding: 32px 16px;
    color: #999;
}

.notif-empty .material-icons {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 8px;
}

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

/* Mobile */
@media (max-width: 576px) {
    .notif-panel {
        width: calc(100vw - 24px);
        right: -8px;
    }
}
