/* ======================== صفحه اعلانات ======================== */
.notifications-header {
    background: #fff;
    border-radius: 16px;
    padding: 25px 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #edf2f7;
}

.page-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-title i {
    color: #4a6cf7;
    font-size: 1.8rem;
}

.page-subtitle {
    color: #718096;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* کارت‌های آمار */
.notifications-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-card {
    flex: 1;
    min-width: 150px;
    background: #f7fafc;
    border-radius: 12px;
    padding: 18px 20px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.stat-card.total {
    border-left: 4px solid #4a6cf7;
}
.stat-card.unread {
    border-left: 4px solid #f56565;
}
.stat-card.read {
    border-left: 4px solid #48bb78;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.stat-card.total .stat-icon {
    background: rgba(74, 108, 247, 0.1);
    color: #4a6cf7;
}
.stat-card.unread .stat-icon {
    background: rgba(245, 101, 101, 0.1);
    color: #f56565;
}
.stat-card.read .stat-icon {
    background: rgba(72, 187, 120, 0.1);
    color: #48bb78;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a202c;
    line-height: 1.2;
}

.stat-label {
    color: #a0aec0;
    font-size: 0.85rem;
    margin-top: 4px;
}

/* فیلترها */
.notifications-filters {
    background: #fff;
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    border: 1px solid #edf2f7;
}

.filter-row {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 180px;
}

.filter-group select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    background: #fff;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23718096' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    padding-left: 30px;
}

.search-box {
    flex: 2;
    min-width: 250px;
    display: flex;
    gap: 8px;
}

.search-box input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
}

.search-box button {
    padding: 10px 18px;
    background: #4a6cf7;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
}

.search-box button:hover {
    background: #3b5de7;
}

.actions-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.actions-row .btn {
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

.btn-success {
    background: #48bb78;
    color: #fff;
}
.btn-success:hover {
    background: #38a169;
}

.btn-danger {
    background: #f56565;
    color: #fff;
}
.btn-danger:hover {
    background: #e53e3e;
}

/* لیست اعلانات */
.notifications-list {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    border: 1px solid #edf2f7;
}

.notification-item {
    display: flex;
    gap: 18px;
    padding: 20px 25px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
    align-items: flex-start;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background: #f7fafc;
}

.notification-item.unread {
    background: #fef6e6;
    border-right: 4px solid #ed8936;
}

.notif-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.notif-icon.info {
    background: #ebf4ff;
    color: #4a6cf7;
}
.notif-icon.success {
    background: #e6fffa;
    color: #48bb78;
}
.notif-icon.warning {
    background: #fffaf0;
    color: #ed8936;
}
.notif-icon.danger {
    background: #fed7d7;
    color: #f56565;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 6px;
}

.notification-header h5 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.notification-header small {
    color: #a0aec0;
    font-size: 0.8rem;
    white-space: nowrap;
}

.notification-content p {
    color: #4a5568;
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 12px;
    word-break: break-word;
}

.notification-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.notification-actions .btn {
    padding: 5px 14px;
    font-size: 0.8rem;
    border-radius: 6px;
    font-weight: 500;
    transition: 0.2s;
}

.btn-outline-primary {
    border: 1px solid #4a6cf7;
    color: #4a6cf7;
    background: transparent;
}
.btn-outline-primary:hover {
    background: #4a6cf7;
    color: #fff;
}

.notification-actions .btn-success {
    background: #48bb78;
    border: none;
    color: white;
}
.notification-actions .btn-success:hover {
    background: #38a169;
}

.notification-actions .btn-danger {
    background: #f56565;
    border: none;
    color: white;
}
.notification-actions .btn-danger:hover {
    background: #e53e3e;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #a0aec0;
    font-size: 1.1rem;
}

/* صفحه‌بندی */
nav .pagination {
    display: flex;
    justify-content: center;
    margin-top: 25px;
    gap: 6px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
}

.page-item .page-link {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 8px;
    background: #fff;
    color: #4a5568;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    font-weight: 500;
    transition: 0.2s;
    font-size: 0.9rem;
}

.page-item.active .page-link {
    background: #4a6cf7;
    color: #fff;
    border-color: #4a6cf7;
}

.page-item .page-link:hover {
    background: #edf2f7;
}

/* Responsive */
@media (max-width: 768px) {
    .notifications-header {
        padding: 20px;
    }

    .notifications-stats {
        flex-direction: column;
    }

    .filter-row {
        flex-direction: column;
    }

    .filter-group, .search-box {
        width: 100%;
    }

    .notification-item {
        flex-direction: column;
        gap: 12px;
    }

    .notification-header {
        flex-direction: column;
    }
}