/* ==================== NOTIFICATION CONTAINER ==================== */
.notification-container {
    position: relative;
    display: inline-block;
    margin-right: -5px;
}

/* ==================== NOTIFICATION ICON & BADGE ==================== */
.notification-icon {
    position: relative;
    font-size: 1rem;
    color: #667eea;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    background: #f8f9ff;
    transition: all 0.2s;
}

.notification-icon:hover {
    background: #edf2ff;
    transform: scale(1.05);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%);
    color: white !important;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    line-height: 20px; 
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(255, 71, 87, 0.3);
    padding: 0;
    box-sizing: border-box;
}

/* ==================== DROPDOWN CONTAINER ==================== */
.notification-dropdown-container {
    position: absolute;
    top: calc(100% + 8px);
    right: -8px;
    width: 400px;
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    display: none;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.15s, transform 0.15s;
}

.notification-dropdown-container.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Dropdown arrow */
.notification-dropdown-container:before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: white;
    border-left: 1px solid #e1e5e9;
    border-top: 1px solid #e1e5e9;
    transform: rotate(45deg);
}

/* ==================== DROPDOWN CONTENT ==================== */
.notification-dropdown {
    max-height: 420px;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
}

/* Make the list scrollable but keep footer fixed */
.notification-list {
    flex: 1;
    overflow-y: auto;
    padding: 4px 0;
    max-height: 350px; /* Adjust based on your needs */
}

.notification-list::-webkit-scrollbar {
    width: 4px;
}

.notification-list::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.notification-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}


/* ==================== HEADER ==================== */
.notification-header {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f2f5;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px 10px 0 0;
}

.notification-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-header h3 i {
    font-size: 12px;
}

.notification-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 3px 10px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
;
}

/* ==================== NOTIFICATION LIST ==================== */
.notification-list {
    padding: 4px 0;
}

/* ==================== NOTIFICATION ITEM (COMPACT) ==================== */
.notification-item {
    padding: 10px 14px;
    border-bottom: 1px solid #f8f9fa;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    transition: background 0.15s;
    position: relative;
}

.notification-item:hover {
    background: #f8fafc;
}

.notification-item.unread {
    background: #f0f7ff;
}

.notification-item.unread:hover {
    background: #e6f0ff;
}

/* ==================== COMPACT NOTIFICATION ICONS ==================== */
.notification-icon-wrapper {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Icon colors */
.notification-item[data-type="appointment"] .notification-icon-wrapper {
    background: #e3f2fd;
    color: #1976d2;
}

.notification-item[data-type="billing"] .notification-icon-wrapper {
    background: #e8f5e9;
    color: #388e3c;
}

.notification-item[data-type="specialization"] .notification-icon-wrapper {
    background: #fff3e0;
    color: #f57c00;
}

.notification-icon-wrapper i {
    font-size: 12px;
}

/* ==================== COMPACT NOTIFICATION CONTENT ==================== */
.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 3px;
    font-size: 12px;
    line-height: 1.3;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.notification-message {
    color: #4a5568;
    font-size: 10px;
    line-height: 1.4;              /* Slightly increased for readability */
    margin-bottom: 5px;
    word-wrap: break-word;          /* Allow long words to break */
    overflow-wrap: break-word;      /* Modern equivalent */
    max-width: 100%;                /* Ensure it stays within container */
}

/* ==================== COMPACT APPOINTMENT DETAILS ==================== */
.appointment-details-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
    font-size: 10px;
}

.appointment-detail-compact {
    background: #edf2f7;
    padding: 2px 6px;
    border-radius: 10px;
    color: #4a5568;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.appointment-detail-compact i {
    font-size: 9px;
}

/* ==================== TIME & STATUS (COMPACT) ==================== */
.notification-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

.notification-time {
    color: #a0aec0;
    font-size: 10px;
    font-weight: 500;
}

.notification-status {
    font-size: 9px;
    padding: 1px 6px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
}

.notification-status.pending {
    background: #fff3cd;
    color: #856404;
}

.notification-status.confirmed {
    background: #d1ecf1;
    color: #0c5460;
}

/* ==================== UNREAD DOT (SMALLER) ==================== */
.notification-dot {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #4299e1;
    border-radius: 50%;
}

.notification-item.read .notification-dot {
    display: none;
}

/* ==================== NO NOTIFICATIONS ==================== */
.no-notifications {
    text-align: center;
    padding: 30px 16px;
    color: #a0aec0;
}

.no-notifications i {
    font-size: 32px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.no-notifications p {
    margin: 0;
    font-size: 13px;
}

/* ==================== FOOTER (COMPACT) ==================== */
.notification-footer {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 14px;
    border-top: 1px solid #f0f2f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafbfc;
    border-radius: 0 0 10px 10px;
    z-index: 1; /* Ensure it stays above notification items */
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05); /* Subtle shadow to separate from content */
}

.view-all {
    color: #667eea;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-all:hover {
    color: #764ba2;
    text-decoration: underline;
}

.mark-all-read {
    background: #667eea;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.mark-all-read:hover {
    background: #764ba2;
}




/* Debug styling */
.debug-info {
    background: #d1ecf1;
    padding: 10px;
    margin: 10px;
    border: 2px solid #bee5eb;
    border-radius: 5px;
    font-size: 12px;
}

/* Make unread notifications more obvious */
.notification-item.unread {
    position: relative;
    border-left: 4px solid #e74c3c !important;
    background-color: #f8f9fa !important;
}

.notification-item.unread:hover {
    background-color: #e9ecef !important;
    transform: translateX(2px);
    transition: all 0.2s ease;
}

.unread-indicator {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #e74c3c;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Mark All Read button styling */
.mark-all-read {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.mark-all-read:hover {
    background: #2980b9;
}

.mark-all-read:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}
