/* Admin Notifications Styles */

/* Notification Bell Styles */
.notification-bell {
    position: relative;
    transition: all 0.3s ease;
}

.notification-bell:hover {
    transform: scale(1.1);
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounceIn 0.5s ease;
}

/* Notification Pulse Animation */
.notification-pulse {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #dc3545;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Dropdown Menu Styles */
.notification-dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 0;
    margin-top: 10px;
}

.notification-dropdown-menu .dropdown-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    color: #495057;
    border-radius: 8px 8px 0 0;
}

.notification-dropdown-menu .dropdown-divider {
    margin: 0;
}

/* Notifications List */
.notifications-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.2s ease;
    cursor: pointer;
    position: relative;
}

.notification-item:hover {
    background-color: #f8f9fa;
}

.notification-item.unread {
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #2196f3;
    border-radius: 50%;
}

.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.notification-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
}

.notification-icon.order {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.notification-icon.contact {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.notification-icon.default {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.notification-text {
    flex: 1;
    min-width: 0;
}

.notification-message {
    font-size: 14px;
    color: #495057;
    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: #6c757d;
}

.notification-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.notification-action {
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notification-action.read {
    background: #e9ecef;
    color: #495057;
}

.notification-action.read:hover {
    background: #dee2e6;
}

.notification-action.delete {
    background: #dc3545;
    color: white;
}

.notification-action.delete:hover {
    background: #c82333;
}

/* Empty State */
.notifications-empty {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.notifications-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Loading State */
.notifications-loading {
    text-align: center;
    padding: 20px;
    color: #6c757d;
}

/* Mark All Read Button */
.mark-all-read {
    font-size: 12px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mark-all-read:hover {
    color: #0056b3 !important;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .notification-dropdown-menu {
        width: 300px !important;
        right: -50px;
    }
    
    .notification-item {
        padding: 12px 15px;
    }
    
    .notification-content {
        gap: 10px;
    }
    
    .notification-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

/* Slide-in animation for new notifications */
@keyframes slideInFromTop {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Notification Page Styles */
.notifications-page {
    background: #f8f9fa;
    min-height: 100vh;
}

.notifications-page .card {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

.notifications-page .card-header {
    background: linear-gradient(135deg, #223aa6 0%, #163ba8 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    padding: 20px;
}

.notifications-page .card-header i {
    margin-right: 10px;
}

.notifications-page .table-listing {
    margin-bottom: 0;
}

.notifications-page .table-listing tr {
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.2s ease;
}

.notifications-page .table-listing tr:hover {
    background-color: #f8f9fa;
}

.notifications-page .table-listing td {
    padding: 20px;
    vertical-align: middle;
    border: none;
}

.notifications-page .table-listing a {
    color: #495057;
    text-decoration: none;
    display: block;
    padding: 10px 0;
    transition: color 0.2s ease;
}

.notifications-page .table-listing a:hover {
    color: #007bff;
}

/* Real-time notification toast */
.notification-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 16px;
    max-width: 350px;
    z-index: 9999;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.notification-toast.show {
    transform: translateX(0);
}

.notification-toast-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.notification-toast-title {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.notification-toast-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Pagination Styling - Less intrusive to allow Tailwind classes */
.pagination-wrapper {
    margin: 20px 0;
}

.notifications-page .pagination {
    margin: 0;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background: white;
    overflow: hidden;
    justify-content: center;
}

.notifications-page .pagination li {
    display: inline-block;
    margin: 0;
}

.notifications-page .pagination li a,
.notifications-page .pagination li span {
    transition: all 0.2s ease;
    position: relative;
}

.notifications-page .pagination li a:hover,
.notifications-page .pagination li span:hover {
    background: #f8f9fa !important;
    color: #007bff !important;
}

.notifications-page .pagination .active span {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.notifications-page .pagination .disabled span,
.notifications-page .pagination .disabled a {
    color: #6c757d !important;
    background: #f8f9fa !important;
    cursor: not-allowed;
}

.notifications-page .pagination .disabled span:hover,
.notifications-page .pagination .disabled a:hover {
    background: #f8f9fa !important;
    color: #6c757d !important;
}

/* Previous/Next buttons - allow Tailwind classes to work */
.notifications-page .pagination .page-link[aria-label="Previous"],
.notifications-page .pagination .page-link[aria-label="Next"] {
    font-weight: 600;
}

/* Add arrow symbols without overriding Tailwind layout */
.notifications-page .pagination .page-link[aria-label="Previous"]::before {
    content: "« ";
    margin-right: 2px;
    font-weight: normal;
}

.notifications-page .pagination .page-link[aria-label="Next"]::after {
    content: " »";
    margin-left: 2px;
    font-weight: normal;
}

/* Mobile responsive pagination - respect Tailwind classes */
@media (max-width: 768px) {
    .notifications-page .pagination li a,
    .notifications-page .pagination li span {
        font-size: 13px;
    }

    .notifications-page .pagination .page-link[aria-label="Previous"],
    .notifications-page .pagination .page-link[aria-label="Next"] {
        font-size: 13px;
    }

    .notifications-page .pagination .page-link[aria-label="Previous"]::before {
        content: "‹ ";
        font-size: 13px;
    }

    .notifications-page .pagination .page-link[aria-label="Next"]::after {
        content: " ›";
        font-size: 13px;
    }
}

.notification-toast-body {
    color: #6c757d;
    font-size: 13px;
    line-height: 1.4;
}
