/* Enhanced Notifications Styling */

/* Notification Dropdown Container */
.notification-dropdown {
    min-width: 380px !important;
    max-width: 420px !important;
    max-height: 500px !important;
    border: none !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

/* Notification Header */
.notification-header {
/*    background: linear-gradient(45deg, #14899a, #0b2f6d) !important;*/
    color: white;
    padding: 16px 20px;
    border-bottom: none;
    position: relative;
}

.notification-header h6 {
    margin: 0;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Mark All as Read Button - Small and positioned on the right */
.mark-all-read-btn {
    background: linear-gradient(45deg, #14899a, #0b2f6d) !important;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin: 8px 20px 8px auto;
    width: auto;
    display: block;
    float: right;
}

.mark-all-read-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    color: white;
}

.notification-header .notification-count {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 500;
}

/* Notification List Container */
.notification-list-container {
    max-height: 350px;
    overflow-y: auto;
    background: #f8f9fa;
}

/* Individual Notification Item */
.notification-item {
    background: white;
    border: none;
    border-bottom: 1px solid #e9ecef;
    padding: 16px 20px;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.notification-item:hover {
    background: #f8f9fa;
    transform: translateX(2px);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item.unread {
    background: #f0f8ff;
    border-left: 4px solid #667eea;
}

.notification-item.unread:hover {
    background: #e6f3ff;
}

/* Notification Icon */
.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.notification-icon i {
    font-size: 16px;
    color: white;
}

/* Notification Type Colors */
.notification-icon.appointment {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.notification-icon.payment {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.notification-icon.ticket {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.notification-icon.system {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.notification-icon.account {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.notification-icon.subscription {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

/* Notification Content */
.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    font-size: 14px;
    color: #2c3e50;
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
/*    overflow: hidden;*/
}

.notification-item.unread .notification-title {
    color: #1a1a1a;
}

.notification-message {
    font-size: 13px;
    color: #6c757d;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-time {
    font-size: 11px;
    color: #adb5bd;
    font-weight: 500;
}

/* Notification Actions */
.notification-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.notification-item:hover .notification-actions {
    opacity: 1;
}

.notification-action-btn {
    background: none;
    border: none;
    color: #6c757d;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 12px;
}

.notification-action-btn:hover {
    background: #e9ecef;
    color: #495057;
}

/* Old Mark All as Read Button - Removed */

/* View All Link */
.notification-footer {
    background: white;
    padding: 12px 20px;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

.notification-footer a {
    color: var(--bs-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s ease;
}

.notification-footer a:hover {
    color: var(--bs-primary);
    text-decoration: underline;
    opacity: 0.8;
}

/* Empty State */
.notification-empty {
    padding: 40px 20px;
    text-align: center;
    color: #6c757d;
}

.notification-empty i {
    font-size: 48px;
    color: #dee2e6;
    margin-bottom: 16px;
}

.notification-empty p {
    margin: 0;
    font-size: 14px;
}

/* Scrollbar Styling - Hidden to prevent hover issues */
.notification-list-container::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

.notification-list-container::-webkit-scrollbar-track {
    background: transparent;
}

.notification-list-container::-webkit-scrollbar-thumb {
    background: transparent;
}

/* Responsive Design */
@media (max-width: 576px) {
    .notification-dropdown {
        min-width: 320px !important;
        max-width: 350px !important;
    }
    
    .notification-item {
        padding: 12px 16px;
    }
    
    .notification-icon {
        width: 36px;
        height: 36px;
        margin-right: 10px;
    }
    
    .notification-title {
        font-size: 13px;
    }
    
    .notification-message {
        font-size: 12px;
    }
}

/* Animation for new notifications */
@keyframes notificationSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification-item.new {
    animation: notificationSlideIn 0.3s ease-out;
}

/* Badge styling for notification count */
.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Enhanced Notifications Page Styles */
.page-header {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.page-title {
    color: #2c3e50;
    font-weight: 600;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: var(--bs-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: var(--bs-primary);
    opacity: 0.8;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* Notification Table Styles */
.notification-row {
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

.notification-row:hover {
    background-color: #f8f9fa;
    transform: translateX(2px);
}

.unread-row {
    background-color: #f0f8ff;
    border-left-color: var(--bs-primary);
}

.unread-row:hover {
    background-color: #e6f3ff;
}

/* Small notification icons for table */
.notification-icon-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon-small i {
    font-size: 14px;
    color: white;
}

/* Notification type colors for small icons */
.notification-icon-small.appointment {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.notification-icon-small.payment {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.notification-icon-small.ticket {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.notification-icon-small.system {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.notification-icon-small.account {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.notification-icon-small.subscription {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

/* Notification message cell */
.notification-message-cell {
    max-width: 400px;
}

.notification-title {
    line-height: 1.4;
    margin-bottom: 4px;
}

.notification-time {
    font-size: 12px;
}

/* Toggle read/unread button */
.toggle-read-status {
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.toggle-read-status:hover {
    transform: scale(1.1);
}

/* Empty state */
.empty-state {
    padding: 40px 20px;
    text-align: center;
}

.empty-state i {
    opacity: 0.5;
}

/* Table header styling */
.table-light th {
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

/* Responsive design */
@media (max-width: 768px) {
    .notification-message-cell {
        max-width: 200px;
    }
    
    .notification-icon-small {
        width: 28px;
        height: 28px;
    }
    
    .notification-icon-small i {
        font-size: 12px;
    }
    
    .toggle-read-status {
        width: 32px;
        height: 32px;
    }
} 