/* ── Root Variables ── */
:root {
    --gold: #C8A96E;
    --gold-light: #E8C98E;
    --gold-dark: #A8894E;
    --dark: #0D0D0D;
    --dark-2: #141414;
    --dark-3: #1C1C1C;
    --dark-4: #252525;
    --white: #FFFFFF;
    --text-muted: #999999;
    --success: #4CAF50;
    --danger: #E74C3C;
    --warning: #F39C12;
}

/* ═══════════════════════════════════════════════════════
   PAGINATION (Bootstrap 4 Style)
═══════════════════════════════════════════════════════ */
.pagination-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.pagination-container {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    background: var(--dark-3);
    padding: 8px 12px;
    border-radius: 14px;
    border: 0.5px solid rgba(255, 255, 255, 0.04);
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.02);
    border: 0.5px solid transparent;
}

.pagination-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}

.pagination-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-icon {
    width: 18px;
    height: 18px;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pagination-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 8px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: transparent;
}

.pagination-page:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--white);
}

.pagination-page.active {
    color: var(--gold);
    background: rgba(200, 169, 110, 0.08);
    font-weight: 700;
}

.pagination-page-active-dot {
    display: none;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold);
    margin-top: 2px;
}

.pagination-page.active .pagination-page-active-dot {
    display: block;
}

.pagination-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 38px;
    color: rgba(255, 255, 255, 0.2);
    font-size: 14px;
    letter-spacing: 2px;
}

.pagination-info {
    font-size: 12px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
    padding: 6px 16px;
    border-radius: 20px;
    border: 0.5px solid rgba(255, 255, 255, 0.03);
}

.pagination-info span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .pagination-container {
        padding: 6px 8px;
        gap: 4px;
    }

    .pagination-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .pagination-btn span {
        display: none;
    }

    .pagination-btn .pagination-icon {
        width: 20px;
        height: 20px;
    }

    .pagination-page {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
        padding: 0 4px;
    }

    .pagination-info {
        font-size: 11px;
        padding: 4px 12px;
    }
}

@media (max-width: 480px) {
    .pagination-container {
        padding: 4px 6px;
        gap: 2px;
        border-radius: 10px;
    }

    .pagination-page {
        min-width: 28px;
        height: 28px;
        font-size: 11px;
        border-radius: 8px;
    }

    .pagination-dots {
        min-width: 20px;
        height: 28px;
        font-size: 12px;
    }

    .pagination-btn {
        padding: 4px 10px;
        font-size: 11px;
        border-radius: 8px;
    }

    .pagination-btn .pagination-icon {
        width: 16px;
        height: 16px;
    }

    .pagination-info {
        font-size: 10px;
        padding: 3px 10px;
    }
}

/* ── Override Bootstrap 4 pagination styles ── */
.pagination {
    background: transparent !important;
    margin: 0 !important;
}

.page-item .page-link {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 0.5px solid rgba(255, 255, 255, 0.06) !important;
    color: rgba(255, 255, 255, 0.6) !important;
    border-radius: 8px !important;
    margin: 0 2px !important;
    transition: all 0.3s ease !important;
}

.page-item .page-link:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--white) !important;
    transform: translateY(-1px);
}

.page-item.active .page-link {
    background: rgba(200, 169, 110, 0.12) !important;
    border-color: var(--gold) !important;
    color: var(--gold) !important;
    font-weight: 700 !important;
}

.page-item.disabled .page-link {
    opacity: 0.3 !important;
    pointer-events: none !important;
}

.page-item .page-link svg {
    width: 16px;
    height: 16px;
}

/* ============================================ */
/* TOAST NOTIFICATION - استایل‌های کامل */
/* ============================================ */

.toast-container {
    position: fixed;
    top: 80px;
    left: 20px;
    width: 420px;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    padding: 0 4px;
}

.toast-container::-webkit-scrollbar {
    width: 3px;
}

.toast-container::-webkit-scrollbar-thumb {
    background: rgba(200, 169, 110, 0.3);
    border-radius: 10px;
}

/* ===== هر نوتیف ===== */
.toast-notification {
    position: relative;
    background: linear-gradient(145deg, #1C1C1C, #252525);
    border: 0.5px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 18px 20px 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
    pointer-events: auto;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    backdrop-filter: blur(10px);
    border-right: 3px solid #C8A96E;
}

.toast-notification:hover {
    transform: translateX(-6px) scale(1.01);
    border-color: rgba(200, 169, 110, 0.3);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}

/* افکت گلو */
.toast-glow {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(200, 169, 110, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* هدر */
.toast-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.toast-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-icon {
    font-size: 22px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.toast-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    font-family: 'Playfair Display', serif;
    background: linear-gradient(135deg, #fff 60%, rgba(200, 169, 110, 0.5));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.toast-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 400;
    letter-spacing: 0.3px;
}

.toast-close {
    background: rgba(255, 255, 255, 0.04);
    border: none;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    line-height: 1;
}

.toast-close:hover {
    background: rgba(231, 76, 60, 0.15);
    color: #E74C3C;
}

/* بدنه */
.toast-body {
    position: relative;
    z-index: 1;
}

.toast-message {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0 0 8px 0;
}

/* جزئیات */
.toast-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    padding: 10px 14px;
    margin: 6px 0 10px 0;
    border: 0.5px solid rgba(255, 255, 255, 0.03);
}

.toast-detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.detail-icon {
    font-size: 14px;
    opacity: 0.7;
}

.detail-text {
    font-weight: 500;
}

/* لینک */
.toast-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    color: #C8A96E;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
    padding: 4px 12px 4px 8px;
    border-radius: 20px;
    background: rgba(200, 169, 110, 0.06);
    border: 0.5px solid rgba(200, 169, 110, 0.05);
}

.toast-link:hover {
    background: rgba(200, 169, 110, 0.12);
    color: #D4B87E;
    transform: translateX(4px);
    border-color: rgba(200, 169, 110, 0.15);
}

/* نوار پیشرفت */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, #C8A96E, #D4B87E);
    border-radius: 0 0 0 2px;
    animation: toastProgress 15s linear forwards;
    z-index: 2;
}

@keyframes toastProgress {
    0% {
        width: 100%;
        opacity: 1;
    }
    100% {
        width: 0%;
        opacity: 0.3;
    }
}

/* انیمیشن‌ها */
@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(80px) scale(0.95);
    }
    60% {
        transform: translateX(-8px) scale(1.01);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.9) translateX(30px);
    }
}

.animate-slide-in {
    animation: slideInRight 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.animate-fade-out {
    animation: fadeOut 0.3s ease forwards;
}

/* ============================================ */
/* RESPONSIVE */
/* ============================================ */
@media (max-width: 768px) {
    .toast-container {
        width: calc(100% - 24px);
        left: 12px;
        top: 70px;
        max-height: 70vh;
    }

    .toast-notification {
        padding: 14px 16px 12px;
        border-radius: 14px;
    }

    .toast-title {
        font-size: 13px;
    }

    .toast-details {
        padding: 8px 12px;
        gap: 6px 12px;
    }

    .toast-detail-item {
        font-size: 11px;
    }

    .toast-icon {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .toast-container {
        width: calc(100% - 16px);
        left: 8px;
        top: 65px;
    }

    .toast-notification {
        padding: 12px 14px 10px;
        border-radius: 12px;
    }

    .toast-header {
        margin-bottom: 6px;
    }

    .toast-title {
        font-size: 12px;
    }

    .toast-message {
        font-size: 12px;
    }

    .toast-details {
        flex-direction: column;
        gap: 4px;
        padding: 6px 10px;
    }

    .toast-detail-item {
        font-size: 11px;
    }

    .toast-link {
        font-size: 11px;
        padding: 3px 10px;
    }
}
