/* ===========================================
   Pagination
   =========================================== */

.doc-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px 0 0;
    gap: 16px;
    flex-wrap: wrap;
}

.pagination-info {
    font-size: 0.75rem;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.pagination-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid #e2e8f0;
    background: white;
    color: var(--primary-blue);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-family: inherit;
}

.pagination-btn:hover:not(.disabled):not(.active) {
    border-color: var(--secondary-gold);
    background: #fffdf5;
}

.pagination-btn.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
}

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

.pagination-ellipsis {
    min-width: 32px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .doc-pagination {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .pagination-btn {
        min-width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }

    .pagination-nav {
        gap: 4px;
    }
}

/* ===========================================
   Responsive — Phone (≤480px)
   =========================================== */

@media (max-width: 480px) {
    .documents-section {
        padding: 50px 12px;
    }

    .custom-dropdown-trigger {
        padding: 12px 14px;
        font-size: 0.85rem;
    }

    /* Single column cards */
    .document-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .document-card {
        padding: 18px;
    }

    .doc-title {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }

    .doc-type-icon {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .doc-meta {
        margin-bottom: 12px;
    }

    .doc-tags {
        margin-bottom: 10px;
        gap: 4px;
    }

    .doc-tag {
        font-size: 0.6rem;
        padding: 2px 8px;
    }

    .btn-action-primary,
    .btn-action-outline {
        padding: 10px;
        font-size: 0.7rem;
    }

    .doc-actions {
        gap: 8px;
    }

    .repo-controls {
        padding: 12px;
        gap: 12px;
    }

    #doc-search {
        padding: 12px 12px 12px 40px;
        font-size: 0.85rem;
    }

    .search-icon {
        left: 14px;
        font-size: 0.9rem;
    }

    .repo-content-header {
        gap: 16px;
        margin-bottom: 20px;
    }
}
