/* Notification Styles */
.notifications-container {
    max-height: 500px;
    overflow-y: auto;
}

.notification-item {
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    border-radius: 8px;
    margin-bottom: 12px;
    background: #fff;
    border-left: 4px solid #667eea;
    padding: 16px !important;
}

.notification-item:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateX(4px);
}

.notification-item.bg-light {
    background-color: #f8f9ff !important;
    border-left-color: #667eea;
}

.notification-item.bg-light:hover {
    background-color: #f0f2ff !important;
}

.notification-item h6 {
    font-weight: 600;
    color: #333;
    margin: 0;
    font-size: 16px;
}

.notification-item .text-muted {
    color: #888 !important;
    font-size: 13px;
}

.notification-item p {
    margin: 8px 0 0 0;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

.notification-item .badge {
    font-size: 11px;
    padding: 4px 8px;
    font-weight: 600;
}

.notification-item .badge.bg-primary {
    background-color: #667eea !important;
}

.notification-item .badge.bg-secondary {
    background-color: #6c757d !important;
}

.notification-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.notification-item .btn-outline-primary {
    border-color: #667eea;
    color: #667eea;
    padding: 4px 8px;
    font-size: 12px;
}

.notification-item .btn-outline-primary:hover {
    background-color: #667eea;
    border-color: #667eea;
    color: #fff;
}

.notification-item .btn-outline-danger {
    border-color: #dc3545;
    color: #dc3545;
    padding: 4px 8px;
    font-size: 12px;
}

.notification-item .btn-outline-danger:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.notification-item .btn-link {
    text-decoration: none;
    color: #667eea;
    font-weight: 500;
    font-size: 13px;
    padding: 0 !important;
    margin-top: 8px;
}

.notification-item .btn-link:hover {
    color: #5568d3;
    text-decoration: underline;
}

.notification-item .btn-link i {
    margin-left: 4px;
    font-size: 11px;
}

/* Modal Styles */
#notificationsModal .modal-header {
    border-bottom: 1px solid #e0e0e0;
    padding: 16px 20px;
    background: #f8f9fa;
}

#notificationsModal .modal-title {
    font-weight: 600;
    color: #333;
    font-size: 18px;
}

#notificationsModal .modal-body {
    padding: 16px 20px;
    background: #ffffff;
}

#notificationsModal .modal-footer {
    border-top: 1px solid #e0e0e0;
    padding: 12px 20px;
    background: #f8f9fa;
}

#notificationsModal .btn-primary {
    background-color: #667eea;
    border-color: #667eea;
}

#notificationsModal .btn-primary:hover {
    background-color: #5568d3;
    border-color: #5568d3;
}

/* Empty state */
.alert-info {
    background-color: #e7f3ff;
    border-color: #b3d9ff;
    color: #004085;
    border-radius: 8px;
}

/* Scrollbar styling */
.notifications-container::-webkit-scrollbar {
    width: 6px;
}

.notifications-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.notifications-container::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.notifications-container::-webkit-scrollbar-thumb:hover {
    background: #5568d3;
}

/* Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-item {
    animation: slideIn 0.3s ease;
}

.notifications-dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    width: 360px;
    max-height: 420px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
    z-index: 1200;
    overflow: hidden;
}

.notifications-dropdown-list {
    max-height: 340px;
    overflow-y: auto;
}

.notification-dropdown-item {
    width: 100%;
    border: none;
    background: #fff;
    text-align: left;
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid #f1f5f9;
}

.notification-dropdown-item:hover {
    background: #f8fafc;
}

.notification-dropdown-item-unread {
    border-left: 3px solid #667eea;
    background: #f8f9ff;
}

.notification-dropdown-title {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
}

.notification-dropdown-content {
    color: #475569;
    font-size: 0.78rem;
    line-height: 1.3;
    margin-bottom: 0.2rem;
}

.notification-dropdown-date {
    color: #94a3b8;
    font-size: 0.7rem;
}

.notifications-dropdown-footer {
    border-top: 1px solid #e2e8f0;
    padding: 0.55rem 0.85rem;
    background: #f8fafc;
}

.notifications-dropdown-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: #4f46e5;
    text-decoration: none;
}

.notifications-dropdown-link:hover {
    text-decoration: underline;
}

/* Dark Theme */
.theme-dark #notificationsModal .modal-content,
.theme-dark #notificationsModal .modal-header,
.theme-dark #notificationsModal .modal-body,
.theme-dark #notificationsModal .modal-footer {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

.theme-dark #notificationsModal .modal-title,
.theme-dark #notificationsModal .btn-close,
.theme-dark #notificationsModal .modal-body,
.theme-dark #notificationsModal .text-muted {
    color: #e2e8f0 !important;
}

.theme-dark .notification-item,
.theme-dark .notification-item.bg-light {
    background: #0f172a !important;
    border-left-color: #6366f1;
}

.theme-dark .notification-item h6,
.theme-dark .notification-item p,
.theme-dark .notification-item .btn-link {
    color: #e2e8f0;
}

.theme-dark .notification-item .text-muted {
    color: #94a3b8 !important;
}

.theme-dark .notification-item .btn-outline-primary {
    border-color: #6366f1;
    color: #c7d2fe;
}

.theme-dark .notification-item .btn-outline-primary:hover {
    background-color: #6366f1;
    border-color: #6366f1;
    color: #fff;
}

.theme-dark .notifications-container::-webkit-scrollbar-track {
    background: #0f172a;
}

.theme-dark .notifications-dropdown-menu {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.theme-dark .notification-dropdown-item {
    background: #1e293b;
    border-bottom-color: #334155;
}

.theme-dark .notification-dropdown-item:hover {
    background: #0f172a;
}

.theme-dark .notification-dropdown-item-unread {
    background: #1e1b4b;
    border-left-color: #818cf8;
}

.theme-dark .notification-dropdown-title {
    color: #e2e8f0;
}

.theme-dark .notification-dropdown-content {
    color: #cbd5e1;
}

.theme-dark .notification-dropdown-date {
    color: #94a3b8;
}

.theme-dark .notifications-dropdown-footer {
    background: #0f172a;
    border-top-color: #334155;
}

.theme-dark .notifications-dropdown-link {
    color: #a5b4fc;
}
