/* CSS Variables для тем */
:root {
    --bg-primary: #f5f7fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f9fafb;
    --bg-hover: #f3f4f6;

    --text-primary: #111827;
    --text-secondary: #374151;
    --text-tertiary: #6b7280;
    --text-muted: #9ca3af;

    --border-primary: #e5e7eb;
    --border-secondary: #d1d5db;
    --border-tertiary: #f3f4f6;

    --accent-primary: #3b82f6;
    --accent-hover: #2563eb;
    --accent-light: #eff6ff;

    --success: #10b981;
    --success-bg: #d1fae5;
    --success-text: #065f46;

    --danger: #ef4444;
    --danger-bg: #fee2e2;
    --danger-text: #991b1b;

    --warning-bg: #fef3c7;
    --warning-text: #92400e;

    --info-bg: #dbeafe;
    --info-text: #1e40af;
}

[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-hover: #475569;

    --text-primary: #f1f5f9;
    --text-secondary: #e2e8f0;
    --text-tertiary: #cbd5e1;
    --text-muted: #94a3b8;

    --border-primary: #334155;
    --border-secondary: #475569;
    --border-tertiary: #1e293b;

    --accent-primary: #3b82f6;
    --accent-hover: #60a5fa;
    --accent-light: #1e3a8a;

    --success: #10b981;
    --success-bg: #064e3b;
    --success-text: #6ee7b7;

    --danger: #ef4444;
    --danger-bg: #7f1d1d;
    --danger-text: #fca5a5;

    --warning-bg: #78350f;
    --warning-text: #fde68a;

    --info-bg: #1e3a8a;
    --info-text: #93c5fd;
}

/* Глобальные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-wrapper {
    min-height: 100vh;
}

.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Переключатель темы */
.theme-toggle {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 1000;
}

.theme-toggle-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.theme-icon {
    width: 24px;
    height: 24px;
    color: var(--text-primary);
}

/* Шапка */
.page-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-primary);
    padding: 20px 0;
    margin-bottom: 32px;
    transition: background-color 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.btn-back {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-back:hover {
    background: var(--bg-hover);
    color: var(--text-secondary);
}

.header-title h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.subtitle {
    font-size: 14px;
    color: var(--text-tertiary);
}

/* Секция статуса */
.status-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.status-card, .log-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 24px;
    transition: background-color 0.3s ease;
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.status-label {
    display: block;
    font-size: 12px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 600;
}

.status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-pending {
    background: var(--warning-bg);
    color: var(--warning-text);
}

.status-processing {
    background: var(--info-bg);
    color: var(--info-text);
    animation: pulse 2s ease-in-out infinite;
}

.status-completed {
    background: var(--success-bg);
    color: var(--success-text);
}

.status-failed {
    background: var(--danger-bg);
    color: var(--danger-text);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.status-meta {
    text-align: right;
}

.meta-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.meta-value {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.current-action-block {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.action-text {
    flex: 1;
}

.action-spinner svg {
    animation: spin 1s linear infinite;
    color: var(--accent-primary);
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.progress-wrapper {
    margin-bottom: 20px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-tertiary);
}

.progress-text {
    font-weight: 600;
    color: var(--text-primary);
}

.progress-bar-modern {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill-modern {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #6366f1 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.quick-stats {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid var(--border-tertiary);
    border-bottom: 1px solid var(--border-tertiary);
    margin-bottom: 20px;
}

.quick-stat {
    flex: 1;
    text-align: center;
}

.quick-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 6px;
}

.quick-stat-label {
    font-size: 12px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quick-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-primary);
}

.action-buttons {
    display: flex;
    gap: 12px;
}

.btn-download {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--success);
    color: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-download:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Лог */
.log-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.log-body {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    padding: 16px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.8;
    color: var(--text-secondary);
    max-height: 400px;
    overflow-y: auto;
    white-space: pre-wrap;
}

.log-body::-webkit-scrollbar {
    width: 6px;
}

.log-body::-webkit-scrollbar-track {
    background: transparent;
}

.log-body::-webkit-scrollbar-thumb {
    background: var(--border-secondary);
    border-radius: 3px;
}

.log-link {
    color: var(--accent-primary);
    text-decoration: none;
}

.log-link:hover {
    text-decoration: underline;
}

/* Аналитика */
.analytics-section {
    margin-bottom: 32px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.analytics-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s;
}

.analytics-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.analytics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.analytics-label {
    font-size: 13px;
    color: var(--text-tertiary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.analytics-header svg {
    width: 24px;
    height: 24px;
    opacity: 0.6;
}

.card-success .analytics-header svg {
    stroke: var(--success);
}

.card-danger .analytics-header svg {
    stroke: var(--danger);
}

.card-info .analytics-header svg {
    stroke: var(--accent-primary);
}

.analytics-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.analytics-footer {
    font-size: 12px;
    color: var(--text-muted);
}

/* Результаты */
.results-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.results-count {
    color: var(--text-tertiary);
    font-weight: 400;
}

.filters-modern {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-chip {
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-chip:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.filter-chip.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.filter-divider {
    width: 1px;
    height: 20px;
    background: var(--border-primary);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card-success {
    border-left: 3px solid var(--success);
}

.card-error {
    border-left: 3px solid var(--danger);
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-tertiary);
}

.product-number {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-primary);
}

.product-status {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-success {
    background: var(--success-bg);
    color: var(--success-text);
}

.status-error {
    background: var(--danger-bg);
    color: var(--danger-text);
}

.product-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-link a {
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 13px;
    word-break: break-all;
}

.product-link a:hover {
    text-decoration: underline;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.meta-key {
    color: var(--text-tertiary);
    font-weight: 500;
}

.meta-value {
    color: var(--text-primary);
}

.meta-badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-фото {
    background: var(--warning-bg);
    color: var(--warning-text);
}

.badge-описание {
    background: var(--info-bg);
    color: var(--info-text);
}

.product-image {
    margin-top: 8px;
}

.image-label {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
    font-weight: 500;
}

.detected-image {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border-primary);
}

.product-actions {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border-tertiary);
}

.link-action {
    color: var(--text-tertiary);
    font-size: 12px;
    text-decoration: none;
    font-weight: 500;
}

.link-action:hover {
    color: var(--accent-primary);
}

/* Главная страница - форма создания */
.create-task-section {
    margin-bottom: 48px;
}

.section-header-inline {
    margin-bottom: 24px;
}

.section-description {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-top: 4px;
}

.form-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 32px;
}

.form-row {
    margin-bottom: 24px;
}

.form-group-modern {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.label-required {
    color: var(--danger);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-secondary);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-secondary);
    transition: all 0.2s;
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-hint {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 6px;
}

.form-group-checkbox {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    padding: 16px;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.checkbox-input {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-secondary);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
    margin-top: 2px;
}

.checkbox-input:checked + .checkbox-custom {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.checkbox-input:checked + .checkbox-custom::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.checkbox-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.checkbox-sublabel {
    font-size: 12px;
    color: var(--text-tertiary);
    font-weight: 400;
}

.form-actions {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-primary);
}

.btn-primary-large {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary-large:hover:not(:disabled) {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

.btn-primary-large:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* История задач - таблица */
.tasks-history-section {
    margin-bottom: 40px;
}

.table-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    overflow: hidden;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
}

.modern-table thead {
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-primary);
}

.modern-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.th-id {
    width: 80px;
}

.th-status {
    width: 130px;
}

.th-progress {
    width: 150px;
}

.th-found {
    width: 100px;
}

.th-date {
    width: 140px;
}

.th-actions {
    width: 180px;
    text-align: right;
}

.table-row {
    border-bottom: 1px solid var(--border-tertiary);
    transition: background 0.2s;
}

.table-row:hover {
    background: var(--bg-tertiary);
}

.modern-table td {
    padding: 16px;
    font-size: 14px;
    color: var(--text-secondary);
}

.td-id {
    font-weight: 600;
    color: var(--accent-primary);
}

.word-badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
}

.progress-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-text {
    font-size: 13px;
    font-weight: 500;
    min-width: 50px;
}

.progress-bar-inline {
    flex: 1;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill-inline {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #6366f1 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.found-count {
    display: inline-block;
    padding: 4px 12px;
    background: var(--success-bg);
    color: var(--success-text);
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
}

.date-text {
    display: block;
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
}

.time-text {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.action-buttons-inline {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.btn-table {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-view {
    color: var(--accent-primary);
    background: var(--accent-light);
    border-color: var(--accent-primary);
}

.btn-view:hover {
    opacity: 0.8;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 64px 32px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
}

.empty-icon {
    margin-bottom: 24px;
}

.empty-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-description {
    font-size: 14px;
    color: var(--text-tertiary);
}

/* Адаптивность */
@media (max-width: 1024px) {
    .status-section {
        grid-template-columns: 1fr;
    }

    .analytics-grid {
        grid-template-columns: 1fr;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .filters-modern {
        width: 100%;
    }

    .filter-chip {
        flex: 1;
        text-align: center;
    }

    .form-card {
        padding: 24px;
    }

    .table-container {
        overflow-x: auto;
    }

    .modern-table {
        min-width: 800px;
    }

    .theme-toggle {
        bottom: 16px;
        right: 16px;
    }

    .theme-toggle-btn {
        width: 48px;
        height: 48px;
    }
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-name {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.btn-logout {
    padding: 8px 16px;
    background: var(--danger);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-logout:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-delete {
    color: var(--danger);
    background: var(--danger-bg);
    border-color: var(--danger);
}

.btn-delete:hover {
    opacity: 0.8;
}

/* Для варианта 1 */
.duration-badge {
    display: block;
    margin-top: 6px;
    padding: 3px 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
    text-align: center;
}

.duration-badge.duration-live {
    background: var(--accent-light);
    color: var(--accent-primary);
    font-weight: 600;
}

/* Для варианта 2 */
.date-with-duration {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.date-row {
    display: flex;
    flex-direction: column;
}

.duration-row {
    font-size: 11px;
    color: var(--text-tertiary);
    font-weight: 500;
}

.duration-mini {
    padding: 2px 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
}

.duration-row.duration-live {
    color: var(--accent-primary);
}

.live-indicator {
    color: var(--accent-primary);
    animation: blink 1.5s ease-in-out infinite;
}

/* Стили пагинации - добавьте ПЕРЕД @keyframes blink */
.pagination-container {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-secondary);
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.pagination-btn:hover:not(.disabled) {
    background: var(--accent-primary);
    color: white;
}

.pagination-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-info {
    font-weight: 600;
    color: var(--text-primary);
}

.pagination-meta {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-tertiary);
    margin-top: 8px;
}

.pagination-pages {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pagination-page {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.pagination-page:hover {
    background: var(--bg-hover);
}

.pagination-page.active {
    background: var(--accent-primary);
    color: white;
}

.pagination-ellipsis {
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}


@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}
