/* ==============================================
   Notification Bell & Dropdown Styles
   ============================================== */

.notification-bell-container {
    position: relative;
    margin-right: 15px;
}

.notification-bell {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    color: #64748b;
    font-size: 20px;
}

.notification-bell:hover {
    background-color: #f1f5f9;
    color: #334155;
}

.notification-bell.has-unread {
    color: #BF2B26;
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 6px;
    background-color: #BF2B26;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    line-height: 1;
    min-width: 18px;
    text-align: center;
}

/* Notification Dropdown */
.notification-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 380px;
    max-height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    overflow: hidden;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    background-color: #f8fafc;
}

.notification-header h6 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.notification-header .btn-link {
    background: none;
    border: none;
    color: #BF2B26;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    padding: 0;
}

.notification-header .btn-link:hover {
    color: #a02421;
    text-decoration: underline;
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-list::-webkit-scrollbar {
    width: 6px;
}

.notification-list::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.notification-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.notification-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.notification-item {
    display: flex;
    padding: 14px 20px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background-color 0.15s ease;
    text-decoration: none;
    color: inherit;
}

.notification-item:hover {
    background-color: #f8fafc;
}

.notification-item.unread {
    background-color: #fff5f5;
}

.notification-item.unread:hover {
    background-color: #ffe5e5;
}

.notification-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 16px;
}

.notification-icon.type-stock {
    background-color: #fef3c7;
    color: #f59e0b;
}

.notification-icon.type-invoice {
    background-color: #ffe5e5;
    color: #BF2B26;
}

.notification-icon.type-quotation {
    background-color: #f3f4f6;
    color: #374151;
}

.notification-icon.type-system {
    background-color: #fff5f5;
    color: #BF2B26;
}

.notification-icon.type-approval {
    background-color: #d1fae5;
    color: #10b981;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-message {
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-time {
    font-size: 12px;
    color: #94a3b8;
}

.notification-priority {
    margin-top: 4px;
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}

.notification-priority.critical {
    background-color: #fee2e2;
    color: #8a1f1d;
}

.notification-priority.high {
    background-color: #fed7aa;
    color: #BF2B26;
}

.notification-priority.normal {
    background-color: #f3f4f6;
    color: #374151;
}

.notification-priority.low {
    background-color: #f3f4f6;
    color: #6b7280;
}

.notification-empty {
    padding: 40px 20px;
    text-align: center;
    color: #94a3b8;
}

.notification-empty i {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.notification-empty p {
    margin: 0;
    font-size: 14px;
}

.notification-loading {
    padding: 40px 20px;
    text-align: center;
    color: #64748b;
}

.notification-loading .spinner-border {
    margin-bottom: 12px;
}

.notification-loading span {
    display: block;
    font-size: 14px;
}

.notification-footer {
    padding: 12px 20px;
    border-top: 1px solid #e2e8f0;
    background-color: #f8fafc;
    text-align: center;
}

.notification-footer a {
    color: #BF2B26;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.notification-footer a:hover {
    color: #a02421;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .notification-dropdown {
        width: calc(100vw - 32px);
        right: -100px;
    }
}
