/* Notifications Page Styles */
.notifications-container {
    padding: 40px 0;
}

.notification-filters {
    margin-bottom: 30px;
}

.notification-filter-btn {
    padding: 10px 20px;
    margin: 5px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.notification-filter-btn:hover {
    border-color: #ff8941;
    color: #ff8941;
    transform: translateY(-2px);
}

.notification-filter-btn.active {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8941 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(255, 137, 65, 0.4);
}

.notification-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    position: relative;
}

.notification-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.notification-card.unread {
    border-left-color: #ff8941;
    background: linear-gradient(to right, #fff9f1 0%, white 100%);
}

.notification-card.read {
    border-left-color: #e0e0e0;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.notification-title {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 5px 0;
}

.notification-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 5px;
}

.notification-type-badge.push {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.notification-type-badge.popup {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.notification-type-badge.email {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.notification-type-badge.sms {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.notification-type-badge.bonus {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

.notification-type-badge.exam {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
    color: white;
}

.notification-type-badge.wallet {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #333;
}

.notification-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.notification-badge.unread {
    background: #ff8941;
    color: white;
}

/* Notifications table */
.notifications-table-wrapper {
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

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

.notifications-table thead {
    background: #f8fafc;
}

.notifications-table thead th {
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
    border-bottom: 1px solid #e5e7eb;
    border-top: none;
}

.notifications-table tbody tr {
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.notifications-table tbody tr.unread {
    background: #fff9f3;
}

.notifications-table tbody tr:hover {
    background: #f9fafb;
}

.notification-title-cell {
    font-weight: 500;
    font-size: 14px;
}

.notification-body-cell {
    font-size: 13px;
    color: #6b7280;
}

/* Header notification dropdown */
.user-notifications {
    position: relative;
    margin-right: 15px;
}

.notification-btn {
    width: 50px;
    height: 40px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    box-shadow: 0 4px 12px rgb(254, 234, 227);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    min-width: auto;
    padding: 15px;
}

.notification-btn i {
    font-size: 18px;
    color: #feece5;
}

.notification-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgb(254, 226, 216);
}

.notification-badge {
    position: absolute;
    top: -15%;
    right: -10%;
    background: #ff3b30;
    color: #fff;
    border-radius: 999px !important;
    padding: 1px 6px !important;
    font-size: 11px !important;
    min-width: 20px;
    text-align: center;
}

.notification-dropdown {
    position: absolute;
    top: 110%;
    right: 0;
    width: 320px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.18);
    overflow: hidden;
    z-index: 9999;
    display: none;
}

.user-notifications.open .notification-dropdown {
    display: block;
}

.notification-dropdown-header {
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f1f5f9;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    text-transform: capitalize;
}

.notification-dropdown-header span:first-child {
    font-weight: 600;
    color: #fff;
}

.notification-dropdown-count {
    font-size: 12px;
    color: #ff6b35;
    background: #fff;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 600;
}

.notification-dropdown-body {
    max-height: 360px;
    overflow-y: auto;
}

.notification-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    text-decoration: none;
    color: #1f2937;
    transition: background 0.15s ease;
    border-bottom: 1px solid #f2f2f1;
}

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

.notification-dropdown-item.unread {
    background: #fff7ed;
}

.notification-dropdown-item-main {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.notification-dropdown-title {
    font-size: 13px;
    font-weight: 500;
}

.notification-dropdown-time {
    font-size: 11px;
    color: #6b7280;
}

.notification-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff6b35;
}

.notification-dropdown-empty {
    padding: 12px 14px;
    font-size: 13px;
    color: #6b7280;
    text-align: center;
}

.notification-dropdown-footer {
    padding: 8px 14px;
    border-top: 1px solid #f1f5f9;
    background: #f9fafb;
}

.notification-dropdown-footer a {
    font-size: 13px;
    color: #ff6b35;
    font-weight: 500;
    text-transform: capitalize;
}

.notification-clear-all-btn {
    border: none;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    border-radius: 999px;
    transition: all 0.15s ease;
}

.notification-clear-all-btn i {
    font-size: 16px;
}

.notification-clear-all-btn:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.notification-badge.read {
    background: #e0e0e0;
    color: #666;
}

.notification-body {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 15px;
}

.notification-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.notification-date {
    color: #a0aec0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.notification-actions {
    display: flex;
    gap: 10px;
    text-align: end;
    justify-content: flex-end;
}

.notification-actions .btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-view {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8941 100%);
    color: white;
    border: none;
}

.btn-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 137, 65, 0.3);
}

.btn-mark-read {
    background: white;
    color: #ff8941;
    border: 2px solid #ff8941;
}

.btn-mark-read:hover {
    background: #fff9f1;
    transform: translateY(-2px);
}

.btn-delete {
    background: white;
    color: #e53e3e;
    border: 2px solid #e53e3e;
}

.btn-delete:hover {
    background: #e53e3e;
    color: white;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 80px;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.empty-state h4 {
    color: #4a5568;
    margin-bottom: 10px;
}

.empty-state p {
    color: #a0aec0;
}

/* Responsive */
@media (max-width: 768px) {
    .notification-header {
        flex-direction: column;
        gap: 10px;
    }

    .notification-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .notification-actions {
        width: 100%;
    }

    .notification-actions .btn {
        flex: 1;
    }
}

.td-badge {
    position: relative !important;
    top: 0 !important;
    right: 0 !important;
}